fix(Scripts/Commands): "go xyz" command crash (#18676)

go xyz fix crash
This commit is contained in:
BAUXA
2024-04-06 14:16:54 +02:00
committed by GitHub
parent 21e0803508
commit 146f5a64ad

View File

@@ -352,7 +352,7 @@ public:
float x = locationValues[0];
float y = locationValues[1];
if (!sMapStore.LookupEntry(mapId))
if (!sMapStore.LookupEntry(mapId) || !MapMgr::IsValidMapCoord(mapId, x, y))
{
handler->SendErrorMessage(LANG_INVALID_TARGET_COORD, x, y, mapId);
return false;