Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/game/BattleGround/BattleGround.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -919,10 +919,12 @@ void BattleGround::AddPlayer(Player* plr)
bp.OfflineRemoveTime = 0;
bp.PlayerTeam = team;

// A player re-logging into the battleground is already counted
bool const isInBattleground = IsPlayerInBattleGround(guid);

// Add to list/maps
m_Players[guid] = bp;

bool const isInBattleground = IsPlayerInBattleGround(guid);
if (!isInBattleground)
{
UpdatePlayersCountByTeam(team, false); // +1 player
Expand Down