aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/SitGoal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/SitGoal.cpp')
-rw-r--r--Minecraft.World/SitGoal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.World/SitGoal.cpp b/Minecraft.World/SitGoal.cpp
index b01bb86a..90180201 100644
--- a/Minecraft.World/SitGoal.cpp
+++ b/Minecraft.World/SitGoal.cpp
@@ -20,7 +20,7 @@ bool SitGoal::canUse()
if (mob->isInWater()) return false;
if (!mob->onGround) return false;
- std::shared_ptr<Mob> owner = mob->getOwner();
+ shared_ptr<Mob> owner = mob->getOwner();
if (owner == NULL) return true; // owner not on level
if (mob->distanceToSqr(owner) < FollowOwnerGoal::TeleportDistance * FollowOwnerGoal::TeleportDistance && owner->getLastHurtByMob() != NULL) return false;