diff options
author | leak <leakzx@googlemail.com> | 2011-03-13 21:51:54 +0100 |
---|---|---|
committer | leak <leakzx@googlemail.com> | 2011-03-13 21:52:37 +0100 |
commit | a874fe07642c0640008d1a709745e4ec829ab8a1 (patch) | |
tree | 1749a9e46dcc5d9c5559e1e3fb1fb26d969cbcc4 /src | |
parent | e97d6e3a6090d4031be7697a127ad6b694d4ee2a (diff) |
Core/Battlegrounds: Fixed memory and CPU cycle leak that was caused by BG objects not being removed properly in "All Arenas" case
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Battlegrounds/BattlegroundQueue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Battlegrounds/BattlegroundQueue.cpp b/src/server/game/Battlegrounds/BattlegroundQueue.cpp index 67e8f8f907b..deb4293d438 100755 --- a/src/server/game/Battlegrounds/BattlegroundQueue.cpp +++ b/src/server/game/Battlegrounds/BattlegroundQueue.cpp @@ -342,7 +342,7 @@ void BattlegroundQueue::RemovePlayer(const uint64& guid, bool decreaseInvitedCou // if invited to bg, and should decrease invited count, then do it if (decreaseInvitedCount && group->IsInvitedToBGInstanceGUID) { - Battleground* bg = sBattlegroundMgr->GetBattleground(group->IsInvitedToBGInstanceGUID, group->BgTypeId); + Battleground* bg = sBattlegroundMgr->GetBattleground(group->IsInvitedToBGInstanceGUID, BATTLEGROUND_AA ? BATTLEGROUND_TYPE_NONE : group->BgTypeId); if (bg) bg->DecreaseInvitedCount(group->Team); } |