aboutsummaryrefslogtreecommitdiff
path: root/src/game/BattleGroundMgr.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-16 20:11:24 -0600
committermegamage <none@none>2009-02-16 20:11:24 -0600
commit5881a1c25c760f3b57210d0912be23b356e3d40f (patch)
treec3e8adca5eb60b007f4ca318ae15aab189cc102f /src/game/BattleGroundMgr.cpp
parent2156fec0d2b0958535495c9edc7d30e2b8e95da5 (diff)
Fixed crash at out of range access to array data in battleground code. Author: VladimirMangos
--HG-- branch : trunk
Diffstat (limited to 'src/game/BattleGroundMgr.cpp')
-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 05b0e1c478c..2b6cd408f91 100644
--- a/src/game/BattleGroundMgr.cpp
+++ b/src/game/BattleGroundMgr.cpp
@@ -181,7 +181,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