From af3981d71bd21dd05aa5cf31bebef3389f0a49e3 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Wed, 21 Nov 2018 16:29:00 +0100 Subject: [PATCH] Scripts/Commands: fixed a crash happening when trying to appear at invalid map coordinates or trying to appear near a transport passenger --- src/server/scripts/Commands/cs_go.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/scripts/Commands/cs_go.cpp b/src/server/scripts/Commands/cs_go.cpp index d1abb2d9a7f..ba362db98ed 100644 --- a/src/server/scripts/Commands/cs_go.cpp +++ b/src/server/scripts/Commands/cs_go.cpp @@ -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; }