fix(Core/Travel): Declare AiObjectContext* context in ClipPath for AI_VALUE macro

This commit is contained in:
bash 2026-05-31 00:02:30 +02:00
parent 35d00b499e
commit ea69b56829

View File

@ -967,7 +967,10 @@ void TravelPath::ClipPath(PlayerbotAI* ai, Unit* mover, bool ignoreEnemyTargets)
GuidVector targets;
Player* bot = ai ? ai->GetBot() : nullptr;
if (bot && ai->GetState() != BOT_STATE_COMBAT && !bot->isDead() && !ignoreEnemyTargets)
{
AiObjectContext* context = ai->GetAiObjectContext();
targets = AI_VALUE(GuidVector, "possible targets");
}
auto endP = fullPath.end();
auto prevP = fullPath.begin();