diff options
author | xjose93 <xjose93@hotmail.com> | 2013-04-29 10:15:35 +0200 |
---|---|---|
committer | xjose93 <xjose93@hotmail.com> | 2013-04-29 10:15:35 +0200 |
commit | fc02b7f8a034556c8941b1571beb904a2bc917a0 (patch) | |
tree | b1f166a82979f9b64e8d3fc8b39c64a3fd506425 /src/server/game/Battlegrounds/BattlegroundQueue.cpp | |
parent | c33b811829767aefe228f6c4f65408c632f05538 (diff) |
Core/Logs: Add player guid into some logs.
Diffstat (limited to 'src/server/game/Battlegrounds/BattlegroundQueue.cpp')
-rw-r--r-- | src/server/game/Battlegrounds/BattlegroundQueue.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/server/game/Battlegrounds/BattlegroundQueue.cpp b/src/server/game/Battlegrounds/BattlegroundQueue.cpp index 65d3b9dc0b8..600f5e8150b 100644 --- a/src/server/game/Battlegrounds/BattlegroundQueue.cpp +++ b/src/server/game/Battlegrounds/BattlegroundQueue.cpp @@ -285,8 +285,6 @@ uint32 BattlegroundQueue::GetAverageQueueWaitTime(GroupQueueInfo* ginfo, Battleg //remove player from queue and from group info, if group info is empty then remove it too void BattlegroundQueue::RemovePlayer(uint64 guid, bool decreaseInvitedCount) { - //Player* player = ObjectAccessor::FindPlayer(guid); - int32 bracket_id = -1; // signed for proper for-loop finish QueuedPlayersMap::iterator itr; @@ -294,7 +292,10 @@ void BattlegroundQueue::RemovePlayer(uint64 guid, bool decreaseInvitedCount) itr = m_QueuedPlayers.find(guid); if (itr == m_QueuedPlayers.end()) { - sLog->outError(LOG_FILTER_BATTLEGROUND, "BattlegroundQueue: couldn't find player to remove GUID: %u", GUID_LOPART(guid)); + std::string playerName = "Unknown"; + if (Player* player = ObjectAccessor::FindPlayer(guid)) + playerName = player->GetName(); + sLog->outError(LOG_FILTER_BATTLEGROUND, "BattlegroundQueue: couldn't find player %s (GUID: %u)", GUID_LOPART(guid)); return; } |