[7300] Fixed recent crashes in battleground code at player leave.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
balrok 2009-02-18 23:49:03 +03:00 committed by VladimirMangos
parent 125bf4bfd6
commit 26a0023d72
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7299"
#define REVISION_NR "7300"
#endif // __REVISION_NR_H__