From 26a0023d7281c06a39a29a75ccf8c9a220f1dcaa Mon Sep 17 00:00:00 2001 From: balrok Date: Wed, 18 Feb 2009 23:49:03 +0300 Subject: [PATCH] [7300] Fixed recent crashes in battleground code at player leave. Signed-off-by: VladimirMangos --- src/game/BattleGroundMgr.cpp | 2 +- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/BattleGroundMgr.cpp b/src/game/BattleGroundMgr.cpp index 061192845..73345aafb 100644 --- a/src/game/BattleGroundMgr.cpp +++ b/src/game/BattleGroundMgr.cpp @@ -260,7 +260,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; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 240926801..0c886e272 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7299" + #define REVISION_NR "7300" #endif // __REVISION_NR_H__