diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-08-22 14:43:34 +0200 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-08-22 19:55:30 +0200 |
commit | a04ad8f02f6b3babf78963dbb0a2d227918f0a35 (patch) | |
tree | 0df8eae42f1589a1c8e25b492dc80484597a59b3 /src/Mobs/PassiveMonster.cpp | |
parent | d (diff) | |
download | cuberite-a04ad8f02f6b3babf78963dbb0a2d227918f0a35.tar cuberite-a04ad8f02f6b3babf78963dbb0a2d227918f0a35.tar.gz cuberite-a04ad8f02f6b3babf78963dbb0a2d227918f0a35.tar.bz2 cuberite-a04ad8f02f6b3babf78963dbb0a2d227918f0a35.tar.lz cuberite-a04ad8f02f6b3babf78963dbb0a2d227918f0a35.tar.xz cuberite-a04ad8f02f6b3babf78963dbb0a2d227918f0a35.tar.zst cuberite-a04ad8f02f6b3babf78963dbb0a2d227918f0a35.zip |
Diffstat (limited to 'src/Mobs/PassiveMonster.cpp')
-rw-r--r-- | src/Mobs/PassiveMonster.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Mobs/PassiveMonster.cpp b/src/Mobs/PassiveMonster.cpp index e9b913212..ff234c2aa 100644 --- a/src/Mobs/PassiveMonster.cpp +++ b/src/Mobs/PassiveMonster.cpp @@ -83,18 +83,18 @@ void cPassiveMonster::Destroyed() -cBehaviorBreeder & cPassiveMonster::GetBehaviorBreeder() +cBehaviorBreeder * cPassiveMonster::GetBehaviorBreeder() { - return m_BehaviorBreeder; + return &m_BehaviorBreeder; } -const cBehaviorBreeder & cPassiveMonster::GetBehaviorBreeder() const +const cBehaviorBreeder * cPassiveMonster::GetBehaviorBreeder() const { - return static_cast<const cBehaviorBreeder &>(m_BehaviorBreeder); + return static_cast<const cBehaviorBreeder *>(&m_BehaviorBreeder); } |