refactor: deglob std::weak_ptr

This commit is contained in:
Tropical
2026-03-06 20:38:50 -06:00
committed by JuiceyDev
parent 6e56e07c6b
commit a744f8f471
70 changed files with 125 additions and 125 deletions

View File

@@ -41,7 +41,7 @@ bool NearestAttackableTargetGoal::canUse()
std::shared_ptr<Mob> potentialTarget = mob->level->getNearestAttackablePlayer(mob->shared_from_this(), within);
if (canAttack(potentialTarget, false))
{
target = weak_ptr<Mob>(potentialTarget);
target = std::<Mob>(potentialTarget);
return true;
}
}
@@ -55,7 +55,7 @@ bool NearestAttackableTargetGoal::canUse()
std::shared_ptr<Mob> potTarget = dynamic_pointer_cast<Mob>(*it);
if (canAttack(potTarget, false))
{
target = weak_ptr<Mob>(potTarget);
target = std::<Mob>(potTarget);
return true;
}
}