Fix prioritized targets reset

This commit is contained in:
Yunfan Li
2024-09-10 23:29:02 +08:00
parent 25c46037cd
commit 1005184adc

View File

@@ -682,7 +682,7 @@ void PlayerbotAI::Reset(bool full)
aiObjectContext->GetValue<Unit*>("old target")->Set(nullptr);
aiObjectContext->GetValue<Unit*>("current target")->Set(nullptr);
aiObjectContext->GetValue<Unit*>("prioritized targets")->Reset();
aiObjectContext->GetValue<GuidVector>("prioritized targets")->Reset();
aiObjectContext->GetValue<ObjectGuid>("pull target")->Set(ObjectGuid::Empty);
aiObjectContext->GetValue<GuidPosition>("rpg target")->Set(GuidPosition());
aiObjectContext->GetValue<LootObject>("loot target")->Set(LootObject());