fix(Core/BG): prevent potential crash in BG (#1931)

This commit is contained in:
Francesco Borzì
2019-06-17 11:14:29 +02:00
committed by Stoabrogga
parent e31ca0b77c
commit 7d13c66e5c

View File

@@ -146,7 +146,7 @@ void BattlegroundMgr::Update(uint32 diff)
void BattlegroundMgr::BuildBattlegroundStatusPacket(WorldPacket* data, Battleground* bg, uint8 QueueSlot, uint8 StatusID, uint32 Time1, uint32 Time2, uint8 arenatype, TeamId teamId, bool isRated, BattlegroundTypeId forceBgTypeId)
{
// pussywizard:
ASSERT(QueueSlot < PLAYER_MAX_BATTLEGROUND_QUEUES);
//ASSERT(QueueSlot < PLAYER_MAX_BATTLEGROUND_QUEUES);
if (StatusID == STATUS_NONE || !bg)
{