Compile bug fixes.

This commit is contained in:
whipowill
2022-05-20 13:36:49 -05:00
parent ba6a4a229f
commit 6ba6044e22
2 changed files with 2 additions and 2 deletions

View File

@@ -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())

View File

@@ -72,7 +72,7 @@ void AttackersValue::AddAttackersOf(Player* player, std::set<Unit*>& 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;
}