Staff/vehicles

* fixed error when trying to lookup accessory creatures in world db with aowow guids
This commit is contained in:
Sarjuuk
2021-10-12 23:19:05 +02:00
parent fca627c408
commit c665062faa

View File

@@ -651,7 +651,8 @@ trait spawnHelper
$info[5] = 'Orientation'.Lang::main('colon').$o[0].'° ('.$o[1].')';
}
if (User::isInGroup(U_GROUP_MODERATOR) && $worldPos)
// guid < 0 are vehicle accessories. those are moved by moving the vehicle
if (User::isInGroup(U_GROUP_MODERATOR) && $worldPos && $s['guid'] > 0)
{
if ($points = Game::worldPosToZonePos($worldPos[$s['guid']]['mapId'], $worldPos[$s['guid']]['posX'], $worldPos[$s['guid']]['posY']))
{