From 6ba6044e22ea620e1dd03445cf07f81b4d4aff52 Mon Sep 17 00:00:00 2001 From: whipowill Date: Fri, 20 May 2022 13:36:49 -0500 Subject: [PATCH] Compile bug fixes. --- src/strategy/values/AttackerCountValues.cpp | 2 +- src/strategy/values/AttackersValue.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/strategy/values/AttackerCountValues.cpp b/src/strategy/values/AttackerCountValues.cpp index dccf9ea3..f022ee26 100644 --- a/src/strategy/values/AttackerCountValues.cpp +++ b/src/strategy/values/AttackerCountValues.cpp @@ -31,7 +31,7 @@ bool HasAggroValue::Calculate() ref = ref->next(); } - ref = target->getThreatMgr().getCurrentVictim(); + ref = target->GetThreatMgr().getCurrentVictim(); if (ref) { if (Unit* victim = ref->getTarget()) diff --git a/src/strategy/values/AttackersValue.cpp b/src/strategy/values/AttackersValue.cpp index 5d788e8d..34737d84 100644 --- a/src/strategy/values/AttackersValue.cpp +++ b/src/strategy/values/AttackersValue.cpp @@ -72,7 +72,7 @@ void AttackersValue::AddAttackersOf(Player* player, std::set& targets) { if (!player->GetGroup()) { - if (!unit->getThreatMgr().getThreat(player) && (!unit->getThreatMgr().getCurrentVictim() || unit->getThreatMgr().getCurrentVictim()->getTarget() != player)) + if (!unit->GetThreatMgr().getThreat(player) && (!unit->GetThreatMgr().getCurrentVictim() || unit->GetThreatMgr().getCurrentVictim()->getTarget() != player)) continue; }