aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDrahy <none@none>2009-02-19 16:09:49 +0100
committerDrahy <none@none>2009-02-19 16:09:49 +0100
commit5076e99df193b311c3055ebc3316401dc52a7f15 (patch)
treec19dced02bd43d3fc9366ead7bf3198ca8f787cd /src
parent1e200fb5146892d9f1c6d63585dc4101944a1571 (diff)
* Fixed recent crashes in battleground code at player leave. Thx VladimirMangos
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/BattleGroundMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/BattleGroundMgr.cpp b/src/game/BattleGroundMgr.cpp
index 2b6cd408f91..d151f3bc232 100644
--- a/src/game/BattleGroundMgr.cpp
+++ b/src/game/BattleGroundMgr.cpp
@@ -194,7 +194,7 @@ void BattleGroundQueue::RemovePlayer(const uint64& guid, bool decreaseInvitedCou
}
// couldn't find the player in bg queue, return
- if(itr == m_QueuedPlayers[queue_id].end())
+ if(queue_id == -1)
{
sLog.outError("Battleground: couldn't find player to remove.");
return;