mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 20:56:23 +00:00
fix(Scripts/Commands): "go xyz" command crash (#18676)
go xyz fix crash
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user