mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Merge pull request #10730 from jackpoz/scoreboard_fix
Core/Battleground: Fix scoreboard
This commit is contained in:
@@ -262,8 +262,8 @@ void BattlegroundMgr::BuildPvpLogDataPacket(WorldPacket* data, Battleground* bg)
|
||||
Battleground::BattlegroundScoreMap::const_iterator itr2 = bg->GetPlayerScoresBegin();
|
||||
for (Battleground::BattlegroundScoreMap::const_iterator itr = itr2; itr != bg->GetPlayerScoresEnd();)
|
||||
{
|
||||
BattlegroundScore* score = itr2->second;
|
||||
itr2 = itr++;
|
||||
BattlegroundScore* score = itr2->second;
|
||||
if (!bg->IsPlayerInBattleground(itr2->first))
|
||||
{
|
||||
TC_LOG_ERROR(LOG_FILTER_BATTLEGROUND, "Player " UI64FMTD " has scoreboard entry for battleground %u but is not in battleground!", itr->first, bg->GetTypeID(true));
|
||||
|
||||
Reference in New Issue
Block a user