BG Crash fixes

This commit is contained in:
郑佩茹
2022-09-26 10:56:43 -06:00
parent f88f49471a
commit 0a62ee0041
4 changed files with 9 additions and 4 deletions

View File

@@ -897,7 +897,7 @@ void PlayerbotAI::DoNextAction(bool min)
}
// same BG
if (bot->InBattleground() && bot->GetBattleground()->GetBgTypeID() == BATTLEGROUND_AV && !GET_PLAYERBOT_AI(member) && member->InBattleground() && bot->GetMapId() == member->GetMapId())
if (bot->InBattleground() && bot->GetBattleground() && bot->GetBattleground()->GetBgTypeID() == BATTLEGROUND_AV && !GET_PLAYERBOT_AI(member) && member->InBattleground() && bot->GetMapId() == member->GetMapId())
{
// TODO disable move to objective if have master in bg
continue;