diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-02-01 21:49:34 +0100 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-02-03 21:50:17 +0100 |
commit | 4aade202e006738a0baf4c3190cff8ce6b91003c (patch) | |
tree | e83b2297221f3f74360304cbb4671fa8a7079722 /src/Mobs/PassiveAggressiveMonster.cpp | |
parent | Merge pull request #2941 from LogicParrot/chunkBug2 (diff) | |
download | cuberite-4aade202e006738a0baf4c3190cff8ce6b91003c.tar cuberite-4aade202e006738a0baf4c3190cff8ce6b91003c.tar.gz cuberite-4aade202e006738a0baf4c3190cff8ce6b91003c.tar.bz2 cuberite-4aade202e006738a0baf4c3190cff8ce6b91003c.tar.lz cuberite-4aade202e006738a0baf4c3190cff8ce6b91003c.tar.xz cuberite-4aade202e006738a0baf4c3190cff8ce6b91003c.tar.zst cuberite-4aade202e006738a0baf4c3190cff8ce6b91003c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/PassiveAggressiveMonster.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Mobs/PassiveAggressiveMonster.cpp b/src/Mobs/PassiveAggressiveMonster.cpp index 71ac7bd89..a1bb1138f 100644 --- a/src/Mobs/PassiveAggressiveMonster.cpp +++ b/src/Mobs/PassiveAggressiveMonster.cpp @@ -26,9 +26,9 @@ bool cPassiveAggressiveMonster::DoTakeDamage(TakeDamageInfo & a_TDI) return false; } - if ((m_Target != nullptr) && (m_Target->IsPlayer())) + if ((GetTarget() != nullptr) && (GetTarget()->IsPlayer())) { - if (!static_cast<cPlayer *>(m_Target)->IsGameModeCreative()) + if (!static_cast<cPlayer *>(GetTarget())->IsGameModeCreative()) { m_EMState = CHASING; } |