From c437e99f90ae2c1ea64d7c8138a6fe72da884b01 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Mon, 28 Aug 2023 15:45:17 +0800 Subject: [PATCH] attackers value --- src/strategy/values/AttackersValue.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/strategy/values/AttackersValue.h b/src/strategy/values/AttackersValue.h index b475e92b..5a586038 100644 --- a/src/strategy/values/AttackersValue.h +++ b/src/strategy/values/AttackersValue.h @@ -23,9 +23,9 @@ class AttackersValue : public ObjectGuidListCalculatedValue static bool IsValidTarget(Unit* attacker, Player* bot); private: - void AddAttackersOf(Group* group, std::set& targets); - void AddAttackersOf(Player* player, std::set& targets); - void RemoveNonThreating(std::set& targets); + void AddAttackersOf(Group* group, std::unordered_set& targets); + void AddAttackersOf(Player* player, std::unordered_set& targets); + void RemoveNonThreating(std::unordered_set& targets); bool hasRealThreat(Unit* attacker); };