mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-06-20 23:49:25 +02:00
fix(Core/Travel): Declare AiObjectContext* context in ClipPath for AI_VALUE macro
This commit is contained in:
parent
35d00b499e
commit
ea69b56829
@ -967,7 +967,10 @@ void TravelPath::ClipPath(PlayerbotAI* ai, Unit* mover, bool ignoreEnemyTargets)
|
|||||||
GuidVector targets;
|
GuidVector targets;
|
||||||
Player* bot = ai ? ai->GetBot() : nullptr;
|
Player* bot = ai ? ai->GetBot() : nullptr;
|
||||||
if (bot && ai->GetState() != BOT_STATE_COMBAT && !bot->isDead() && !ignoreEnemyTargets)
|
if (bot && ai->GetState() != BOT_STATE_COMBAT && !bot->isDead() && !ignoreEnemyTargets)
|
||||||
|
{
|
||||||
|
AiObjectContext* context = ai->GetAiObjectContext();
|
||||||
targets = AI_VALUE(GuidVector, "possible targets");
|
targets = AI_VALUE(GuidVector, "possible targets");
|
||||||
|
}
|
||||||
|
|
||||||
auto endP = fullPath.end();
|
auto endP = fullPath.end();
|
||||||
auto prevP = fullPath.begin();
|
auto prevP = fullPath.begin();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user