diff options
| author | Shauren <shauren.trinity@gmail.com> | 2012-11-25 10:27:11 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2012-11-25 10:27:11 +0100 |
| commit | 0462f0b14913a7bc1360e1c6804a493865396bcb (patch) | |
| tree | 808ac7b391ec78844bdc3b447e030736e1adfbf3 /src | |
| parent | 5de19484ee09deb4ef1bcfd9438e25c8dd645c0d (diff) | |
Core/Battlegrounds: Corrected arena logout win conditions
Diffstat (limited to 'src')
| -rwxr-xr-x | src/server/game/Battlegrounds/Battleground.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Battlegrounds/Battleground.cpp b/src/server/game/Battlegrounds/Battleground.cpp index 40a74a49b69..b54efad18f0 100755 --- a/src/server/game/Battlegrounds/Battleground.cpp +++ b/src/server/game/Battlegrounds/Battleground.cpp @@ -1275,8 +1275,8 @@ void Battleground::EventPlayerLoggedOut(Player* player) // 1 player is logging out, if it is the last, then end arena! if (isArena()) - if (GetAlivePlayersCountByTeam(player->GetTeam()) <= 1 && GetPlayersCountByTeam(GetOtherTeam(player->GetTeam()))) - EndBattleground(GetOtherTeam(player->GetTeam())); + if (GetAlivePlayersCountByTeam(player->GetBGTeam()) <= 1 && GetPlayersCountByTeam(GetOtherTeam(player->GetBGTeam()))) + EndBattleground(GetOtherTeam(player->GetBGTeam())); } } |
