From c95791ca232f74ccc593c36c4b081168964ccd3b Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Mon, 16 Feb 2009 17:06:30 +0300 Subject: [PATCH] Fixed crash at out of range access to array data in battleground code. --- src/game/BattleGroundMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/BattleGroundMgr.cpp b/src/game/BattleGroundMgr.cpp index dfbcff4ec..061192845 100644 --- a/src/game/BattleGroundMgr.cpp +++ b/src/game/BattleGroundMgr.cpp @@ -247,7 +247,7 @@ void BattleGroundQueue::RemovePlayer(const uint64& guid, bool decreaseInvitedCou { Player *plr = objmgr.GetPlayer(guid); - uint32 queue_id = 0; + int32 queue_id = 0; // signed for proper for-loop finish QueuedPlayersMap::iterator itr; // mostly people with the highest levels are in battlegrounds, thats why -- 2.11.4.GIT