Fixed crash at out of range access to array data in battleground code.

This commit is contained in:
VladimirMangos 2009-02-16 17:06:30 +03:00
parent f75f112bfc
commit b30d1e65a0

View file

@ -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