diff options
-rw-r--r-- | src/server/game/Battlegrounds/Battleground.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/game/Battlegrounds/Battleground.cpp b/src/server/game/Battlegrounds/Battleground.cpp index 001c186e820..8bf9867a4d3 100644 --- a/src/server/game/Battlegrounds/Battleground.cpp +++ b/src/server/game/Battlegrounds/Battleground.cpp @@ -1046,10 +1046,12 @@ void Battleground::AddPlayer(Player* player) bp.Team = team; bp.ActiveSpec = player->GetPrimarySpecialization(); + bool const isInBattleground = IsPlayerInBattleground(player->GetGUID()); // Add to list/maps m_Players[player->GetGUID()] = bp; - UpdatePlayersCountByTeam(team, false); // +1 player + if (!isInBattleground) + UpdatePlayersCountByTeam(team, false); // +1 player WorldPackets::Battleground::BattlegroundPlayerJoined playerJoined; playerJoined.Guid = player->GetGUID(); |