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
+3 -3
View File
@@ -7,7 +7,7 @@
SwellGoal::SwellGoal(Creeper *creeper)
{
target = weak_ptr<Mob>();
target = std::<Mob>();
this->creeper = creeper;
setRequiredControlFlags(Control::MoveControlFlag);
@@ -22,12 +22,12 @@ bool SwellGoal::canUse()
void SwellGoal::start()
{
creeper->getNavigation()->stop();
target = weak_ptr<Mob>(creeper->getTarget());
target = std::<Mob>(creeper->getTarget());
}
void SwellGoal::stop()
{
target = weak_ptr<Mob>();
target = std::<Mob>();
}
void SwellGoal::tick()