fix(Scripts/Commands): Crash on go xyz with invalid mapid (#17962)

fix(Scripts/Commands): Crash on go xyz
This commit is contained in:
Kitzunu
2023-12-09 01:06:02 +01:00
committed by GitHub
parent f2007aa59e
commit 4d935d6d8a

View File

@@ -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;