mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 07:48:02 +00:00
fix(Core/BG): prevent potential crash in BG (#1931)
This commit is contained in:
committed by
Stoabrogga
parent
e31ca0b77c
commit
7d13c66e5c
@@ -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)
|
void BattlegroundMgr::BuildBattlegroundStatusPacket(WorldPacket* data, Battleground* bg, uint8 QueueSlot, uint8 StatusID, uint32 Time1, uint32 Time2, uint8 arenatype, TeamId teamId, bool isRated, BattlegroundTypeId forceBgTypeId)
|
||||||
{
|
{
|
||||||
// pussywizard:
|
// pussywizard:
|
||||||
ASSERT(QueueSlot < PLAYER_MAX_BATTLEGROUND_QUEUES);
|
//ASSERT(QueueSlot < PLAYER_MAX_BATTLEGROUND_QUEUES);
|
||||||
|
|
||||||
if (StatusID == STATUS_NONE || !bg)
|
if (StatusID == STATUS_NONE || !bg)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user