summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBlumfield <Blumfield@users.noreply.github.com>2016-11-05 08:37:58 +0100
committerShin <borzifrancesco@gmail.com>2016-11-05 08:37:58 +0100
commitdc2c3d1fde84196fa660ca22625c2c34977c71d1 (patch)
tree5d2cdb21be36c6ee4bd2d677dfee5b48f254558e /src
parent8088ca220a0766f39811ad7b7bb3354f01799edb (diff)
Core/Chat: Fix crash when using a command (#220)
Diffstat (limited to 'src')
-rw-r--r--src/game/Chat/Chat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Chat/Chat.cpp b/src/game/Chat/Chat.cpp
index 471e98c018..7ab9baaf49 100644
--- a/src/game/Chat/Chat.cpp
+++ b/src/game/Chat/Chat.cpp
@@ -310,13 +310,13 @@ bool ChatHandler::ExecuteCommandInTable(std::vector<ChatCommand> const& table, c
}
sLog->outCommand(m_session->GetAccountId(), "Command: %s [Player: %s (%ul) (Account: %u) X: %f Y: %f Z: %f Map: %u (%s) Area: %u (%s) Zone: %s Selected: %s (%ul)]",
- fullcmd.c_str(), player->GetName().c_str(), player->GetGUID(),
+ fullcmd.c_str(), player->GetName().c_str(), GUID_LOPART(player->GetGUID()),
m_session->GetAccountId(), player->GetPositionX(), player->GetPositionY(),
player->GetPositionZ(), player->GetMapId(),
player->GetMap() ? player->GetMap()->GetMapName() : "Unknown",
areaId, areaName.c_str(), zoneName.c_str(),
(player->GetSelectedUnit()) ? player->GetSelectedUnit()->GetName().c_str() : "",
- guid);
+ GUID_LOPART(guid));
}
}
// some commands have custom error messages. Don't send the default one in these cases.