mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-06-20 15:39:25 +02:00
fix(Core/Travel): Declare AiObjectContext* context in ClipPath for AI_VALUE macro
This commit is contained in:
parent
b446c5c3ac
commit
43186dac42
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user