From 4c0db8eda8251cb583e96e6af156ee96476085bb Mon Sep 17 00:00:00 2001 From: whipowill Date: Fri, 20 May 2022 13:55:36 -0500 Subject: [PATCH] Compile bug fixes. --- src/strategy/actions/MovementActions.cpp | 2 +- src/strategy/values/AttackerCountValues.cpp | 2 +- src/strategy/values/AttackersValue.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/strategy/actions/MovementActions.cpp b/src/strategy/actions/MovementActions.cpp index 7b363929..6a350bf7 100644 --- a/src/strategy/actions/MovementActions.cpp +++ b/src/strategy/actions/MovementActions.cpp @@ -1048,7 +1048,7 @@ bool MovementAction::Flee(Unit *target) } } - HostileReference* ref = target->GetThreatMgr().getCurrentVictim(); + HostileReference* ref = target->getThreatMgr().getCurrentVictim(); if (ref && ref->getTarget() == bot) // bot is target - try to flee to tank or master { if (Group* group = bot->GetGroup()) diff --git a/src/strategy/values/AttackerCountValues.cpp b/src/strategy/values/AttackerCountValues.cpp index f022ee26..dccf9ea3 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 34737d84..5d788e8d 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; }