[8799] Implemented thread safe bg queue updates.

Signed-off-by: Triply <triply@getmangos.com>
This commit is contained in:
Triply 2009-11-09 22:24:06 +01:00
parent ea7100ff63
commit ee0fa56166
5 changed files with 187 additions and 206 deletions

View file

@ -1084,7 +1084,7 @@ void BattleGround::RemovePlayerAtLeave(uint64 guid, bool Transport, bool SendPac
{
// a player has left the battleground, so there are free slots -> add to queue
AddToBGFreeSlotQueue();
sBattleGroundMgr.m_BattleGroundQueues[bgQueueTypeId].Update(bgTypeId, GetQueueId());
sBattleGroundMgr.ScheduleQueueUpdate(0, 0, bgQueueTypeId, bgTypeId, GetQueueId());
}
// Let others know