diff options
author | Discover- <amort11@hotmail.com> | 2014-01-22 08:36:09 +0100 |
---|---|---|
committer | Discover- <amort11@hotmail.com> | 2014-01-22 08:36:09 +0100 |
commit | 79ca85da87d831e1ab02c7c9aa886bb71f963555 (patch) | |
tree | 665ba117380f565ea36d690aa79485a464dac0cc /src | |
parent | 77031c59fb2c425b6969a460171d6496ac42c5fb (diff) |
Core/Battleground: Fix compile after last pull request.
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Battlegrounds/BattlegroundMgr.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/server/game/Battlegrounds/BattlegroundMgr.cpp b/src/server/game/Battlegrounds/BattlegroundMgr.cpp index 4aa4fe56290..823b869623d 100644 --- a/src/server/game/Battlegrounds/BattlegroundMgr.cpp +++ b/src/server/game/Battlegrounds/BattlegroundMgr.cpp @@ -379,7 +379,8 @@ void BattlegroundMgr::BuildPvpLogDataPacket(WorldPacket* data, Battleground* bg) size_t count_pos = data->bitwpos(); data->WriteBits(0, 21); uint32 count = 0; - BattlegroundPlayerMap const& bgPlayers = bg->GetPlayers(); + Battleground::BattlegroundPlayerMap const& bgPlayers = bg->GetPlayers(); + for (Battleground::BattlegroundScoreMap::const_iterator itr = bg->GetPlayerScoresBegin(); itr != bg->GetPlayerScoresEnd(); ++itr) { if (!bg->IsPlayerInBattleground(itr->first)) @@ -397,10 +398,10 @@ void BattlegroundMgr::BuildPvpLogDataPacket(WorldPacket* data, Battleground* bg) } else { - BattlegroundPlayerMap::const_iterator itr2 = bgPlayers.find(itr->first); + Battleground::BattlegroundPlayerMap::const_iterator itr2 = bgPlayers.find(itr->first); if (itr2 == bgPlayers.end()) { - TC_LOG_ERROR(LOG_FILTER_BATTLEGROUND, "Player " UI64FMTD " has scoreboard entry for battleground %u but do not have battleground data!", itr->first, bg->GetTypeID(true)); + TC_LOG_ERROR("bg.battleground", "Player " UI64FMTD " has scoreboard entry for battleground %u but do not have battleground data!", itr->first, bg->GetTypeID(true)); continue; } |