mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01: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:
parent
08b77acd8d
commit
105b16358f
@ -44,6 +44,9 @@ Unit* FlagCarrierValue::Calculate()
|
||||
{
|
||||
BattlegroundEY* bg = (BattlegroundEY*)botAI->GetBot()->GetBattleground();
|
||||
|
||||
if (!bg)
|
||||
return nullptr;
|
||||
|
||||
if (bg->GetFlagPickerGUID().IsEmpty())
|
||||
return nullptr;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user