From c665062faaa9369014be5cc857d8d843702502d2 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Tue, 12 Oct 2021 23:19:05 +0200 Subject: [PATCH] Staff/vehicles * fixed error when trying to lookup accessory creatures in world db with aowow guids --- includes/basetype.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/basetype.class.php b/includes/basetype.class.php index 8e1dac72..08fa4e79 100644 --- a/includes/basetype.class.php +++ b/includes/basetype.class.php @@ -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'])) {