mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
BG: Crash fix when bots are trying to determine the eye flagcarrier when the battleground no longer exists (#1119)
This commit is contained in:
@@ -44,6 +44,9 @@ Unit* FlagCarrierValue::Calculate()
|
||||
{
|
||||
BattlegroundEY* bg = (BattlegroundEY*)botAI->GetBot()->GetBattleground();
|
||||
|
||||
if (!bg)
|
||||
return nullptr;
|
||||
|
||||
if (bg->GetFlagPickerGUID().IsEmpty())
|
||||
return nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user