mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(Scripts/Commands): Crash on go xyz with invalid mapid (#17962)
fix(Scripts/Commands): Crash on go xyz
This commit is contained in:
@@ -352,7 +352,7 @@ public:
|
||||
float x = locationValues[0];
|
||||
float y = locationValues[1];
|
||||
|
||||
if (mapId == MAPID_INVALID)
|
||||
if (!sMapStore.LookupEntry(mapId))
|
||||
{
|
||||
handler->SendErrorMessage(LANG_INVALID_TARGET_COORD, x, y, mapId);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user