fix: stupid

This commit is contained in:
Tropical
2026-03-06 20:39:58 -06:00
parent 6131826226
commit 653a2c4289
68 changed files with 118 additions and 118 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 = std::<Mob>(potentialTarget);
target = std::weak_ptr<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 = std::<Mob>(potTarget);
target = std::weak_ptr<Mob>(potTarget);
return true;
}
}