diff --git a/src/strategy/values/PvpValues.cpp b/src/strategy/values/PvpValues.cpp index 8a497add..84c586c6 100644 --- a/src/strategy/values/PvpValues.cpp +++ b/src/strategy/values/PvpValues.cpp @@ -44,6 +44,9 @@ Unit* FlagCarrierValue::Calculate() { BattlegroundEY* bg = (BattlegroundEY*)botAI->GetBot()->GetBattleground(); + if (!bg) + return nullptr; + if (bg->GetFlagPickerGUID().IsEmpty()) return nullptr;