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 x = locationValues[0];
|
||||||
float y = locationValues[1];
|
float y = locationValues[1];
|
||||||
|
|
||||||
if (mapId == MAPID_INVALID)
|
if (!sMapStore.LookupEntry(mapId))
|
||||||
{
|
{
|
||||||
handler->SendErrorMessage(LANG_INVALID_TARGET_COORD, x, y, mapId);
|
handler->SendErrorMessage(LANG_INVALID_TARGET_COORD, x, y, mapId);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user