aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;