Core/Commands: Fixed crash in .go commands

Closes #22498

(cherry picked from commit b27a76969a)
This commit is contained in:
Shauren
2018-09-23 22:57:33 +02:00
parent e4c4b57aa2
commit 9f2ccf9924

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