diff options
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); } |