mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
BG Crash fixes
This commit is contained in:
@@ -539,7 +539,7 @@ void RandomPlayerbotMgr::CheckBgQueue()
|
||||
else
|
||||
BgPlayers[queueTypeId][bracketId][teamId]++;
|
||||
|
||||
if (!player->IsInvitedForBattlegroundInstance() && (!player->InBattleground() || player->GetBattleground()->GetBgTypeID() != BattlegroundMgr::BGTemplateId(queueTypeId)))
|
||||
if (!player->IsInvitedForBattlegroundInstance() && (!player->InBattleground() || (player->GetBattleground() && player->GetBattleground()->GetBgTypeID() != BattlegroundMgr::BGTemplateId(queueTypeId))))
|
||||
{
|
||||
if (BattlegroundMgr::BGArenaType(queueTypeId))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user