aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/OwnerHurtByTargetGoal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/OwnerHurtByTargetGoal.cpp')
-rw-r--r--Minecraft.World/OwnerHurtByTargetGoal.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Minecraft.World/OwnerHurtByTargetGoal.cpp b/Minecraft.World/OwnerHurtByTargetGoal.cpp
index 787eb2ae..8250dc18 100644
--- a/Minecraft.World/OwnerHurtByTargetGoal.cpp
+++ b/Minecraft.World/OwnerHurtByTargetGoal.cpp
@@ -14,7 +14,7 @@ bool OwnerHurtByTargetGoal::canUse()
{
if (!tameAnimal->isTame()) return false;
shared_ptr<LivingEntity> owner = dynamic_pointer_cast<LivingEntity>( tameAnimal->getOwner() );
- if (owner == nullptr) return false;
+ if (owner == NULL) return false;
ownerLastHurtBy = weak_ptr<LivingEntity>(owner->getLastHurtByMob());
int ts = owner->getLastHurtByMobTimestamp();
@@ -27,7 +27,7 @@ void OwnerHurtByTargetGoal::start()
mob->setTarget(ownerLastHurtBy.lock());
shared_ptr<LivingEntity> owner = dynamic_pointer_cast<LivingEntity>( tameAnimal->getOwner() );
- if (owner != nullptr)
+ if (owner != NULL)
{
timestamp = owner->getLastHurtByMobTimestamp();
}