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
@@ -12,7 +12,7 @@ TakeFlowerGoal::TakeFlowerGoal(Villager *villager)
{
takeFlower = false;
pickupTick = 0;
golem = weak_ptr<VillagerGolem>();
golem = std::<VillagerGolem>();
this->villager = villager;
setRequiredControlFlags(Control::MoveControlFlag | Control::LookControlFlag);
@@ -36,7 +36,7 @@ bool TakeFlowerGoal::canUse()
std::shared_ptr<VillagerGolem> vg = dynamic_pointer_cast<VillagerGolem>(*it);
if (vg->getOfferFlowerTick() > 0)
{
golem = weak_ptr<VillagerGolem>(vg);
golem = std::<VillagerGolem>(vg);
break;
}
}
@@ -58,7 +58,7 @@ void TakeFlowerGoal::start()
void TakeFlowerGoal::stop()
{
golem = weak_ptr<VillagerGolem>();
golem = std::<VillagerGolem>();
villager->getNavigation()->stop();
}