summaryrefslogtreecommitdiffstats
path: root/src/Mobs/PassiveMonster.cpp
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-08-22 15:48:16 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2017-08-22 19:55:30 +0200
commit0b16f845bcabef872b798e69158721b23e6913e3 (patch)
tree401910feef8ccfcdfb01c56e9d3ecaf2d44dd11c /src/Mobs/PassiveMonster.cpp
parentd (diff)
downloadcuberite-0b16f845bcabef872b798e69158721b23e6913e3.tar
cuberite-0b16f845bcabef872b798e69158721b23e6913e3.tar.gz
cuberite-0b16f845bcabef872b798e69158721b23e6913e3.tar.bz2
cuberite-0b16f845bcabef872b798e69158721b23e6913e3.tar.lz
cuberite-0b16f845bcabef872b798e69158721b23e6913e3.tar.xz
cuberite-0b16f845bcabef872b798e69158721b23e6913e3.tar.zst
cuberite-0b16f845bcabef872b798e69158721b23e6913e3.zip
Diffstat (limited to 'src/Mobs/PassiveMonster.cpp')
-rw-r--r--src/Mobs/PassiveMonster.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Mobs/PassiveMonster.cpp b/src/Mobs/PassiveMonster.cpp
index ff234c2aa..777238b79 100644
--- a/src/Mobs/PassiveMonster.cpp
+++ b/src/Mobs/PassiveMonster.cpp
@@ -11,7 +11,7 @@
cPassiveMonster::cPassiveMonster(const AString & a_ConfigName, eMonsterType a_MobType, const AString & a_SoundHurt, const AString & a_SoundDeath, double a_Width, double a_Height) :
super(a_ConfigName, a_MobType, a_SoundHurt, a_SoundDeath, a_Width, a_Height),
- m_BehaviorBreeder(this), m_BehaviorItemFollower(this), m_BehaviorCoward(this)
+ m_BehaviorBreeder(this), m_BehaviorItemFollower(this), m_BehaviorCoward(this), m_BehaviorWanderer(this)
{
m_EMPersonality = PASSIVE;
}
@@ -116,7 +116,7 @@ void cPassiveMonster::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
{
break;
}
- if (super::m_BehaviorWanderer.ActiveTick(a_Dt, a_Chunk))
+ if (m_BehaviorWanderer.ActiveTick(a_Dt, a_Chunk))
{
break;
}