Core/Commands: Fixed crash in .go commands

Closes #22498

(cherry picked from commit b27a76969a2fdbf2e390f28478b9b8ccdb48e2bd)
This commit is contained in:
Shauren
2021-11-10 00:34:17 +01:00
parent e4c4b57aa2
commit 9f2ccf9924
+1 -1
View File
@@ -89,7 +89,7 @@ public:
if (!MapManager::IsValidMapCoord(loc) || sObjectMgr->IsTransportMap(loc.GetMapId()))
{
handler->PSendSysMessage(LANG_INVALID_TARGET_COORD, loc.GetPositionX(), loc.GetPositionY(), loc.GetPositionZ());
handler->PSendSysMessage(LANG_INVALID_TARGET_COORD, loc.GetPositionX(), loc.GetPositionY(), loc.GetMapId());
handler->SetSentErrorMessage(true);
return false;
}