From 2c2e4775af9874bca50a91c0a81c7d65e02b4732 Mon Sep 17 00:00:00 2001 From: Andreas Titan Date: Sun, 2 Feb 2025 07:58:29 +0100 Subject: [PATCH] Battleground: Add missing "BgObjective" variable for BATTLEGROUND_EY and BATTLEGROUND_IC (accidentaly removed during AV cleanup) (#138) --- playerbot/strategy/actions/BattleGroundTactics.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playerbot/strategy/actions/BattleGroundTactics.cpp b/playerbot/strategy/actions/BattleGroundTactics.cpp index 5a65aac6..43e153ed 100644 --- a/playerbot/strategy/actions/BattleGroundTactics.cpp +++ b/playerbot/strategy/actions/BattleGroundTactics.cpp @@ -3280,6 +3280,8 @@ bool BGTactics::selectObjective(bool reset) rootTeamIndex = TEAM_INDEX_ALLIANCE; } + WorldObject* BgObjective = nullptr; + //Get BgObjective if not set if (!bot->HasAura(EY_SPELL_NETHERSTORM_FLAG)) { @@ -3438,6 +3440,7 @@ bool BGTactics::selectObjective(bool reset) #ifdef MANGOSBOT_TWO case BATTLEGROUND_IC: { + WorldObject* BgObjective = nullptr; uint32 currentObjective = BG_IC_MAX_OBJECTIVES; uint32 role = context->GetValue("bg role")->Get(); bool inVehicle = ai->IsInVehicle();