Scripts/Commands: fixed a crash happening when trying to appear at invalid map coordinates or trying to appear near a transport passenger

This commit is contained in:
Ovahlord committed 2018-11-21 16:29:00 +01:00
1 parent cce24f2cef
commit af3981d71b
1 file changed
+1 -1
+1 -1
View File
@@ -85,7 +85,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;
}