refactor: deglob std::weak_ptr

This commit is contained in:
Tropical
2026-03-08 22:43:59 +01:00
committed by JuiceyDev
parent 6e56e07c6b
commit a744f8f471
70 changed files with 125 additions and 125 deletions
@@ -13,7 +13,7 @@ bool DefendVillageTargetGoal::canUse()
{
std::shared_ptr<Village> village = golem->getVillage();
if (village == NULL) return false;
potentialTarget = weak_ptr<Mob>(village->getClosestAggressor(dynamic_pointer_cast<Mob>(golem->shared_from_this())));
potentialTarget = std::<Mob>(village->getClosestAggressor(dynamic_pointer_cast<Mob>(golem->shared_from_this())));
return canAttack(potentialTarget.lock(), false);
}