From dc2c3d1fde84196fa660ca22625c2c34977c71d1 Mon Sep 17 00:00:00 2001 From: Blumfield Date: Sat, 5 Nov 2016 08:37:58 +0100 Subject: [PATCH] Core/Chat: Fix crash when using a command (#220) --- src/game/Chat/Chat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/Chat/Chat.cpp b/src/game/Chat/Chat.cpp index 471e98c01..7ab9baaf4 100644 --- a/src/game/Chat/Chat.cpp +++ b/src/game/Chat/Chat.cpp @@ -310,13 +310,13 @@ bool ChatHandler::ExecuteCommandInTable(std::vector 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.