aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2018-09-23 22:57:33 +0200
committerShauren <shauren.trinity@gmail.com>2021-11-10 00:34:17 +0100
commit9f2ccf9924fc48d25419f1ce63e1a647bc15dba6 (patch)
tree32cdadccbd6a8a38a95e3ccab9b7ee30fc388b95
parente4c4b57aa273ccf6c0e432b2177be4792c12917c (diff)
Core/Commands: Fixed crash in .go commands
Closes #22498 (cherry picked from commit b27a76969a2fdbf2e390f28478b9b8ccdb48e2bd)
-rw-r--r--src/server/scripts/Commands/cs_go.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Commands/cs_go.cpp b/src/server/scripts/Commands/cs_go.cpp
index ffd3181d205..dfa7d76b433 100644
--- a/src/server/scripts/Commands/cs_go.cpp
+++ b/src/server/scripts/Commands/cs_go.cpp
@@ -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;
}