From a04ad8f02f6b3babf78963dbb0a2d227918f0a35 Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Tue, 22 Aug 2017 15:43:34 +0300 Subject: d --- src/Mobs/PassiveMonster.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Mobs/PassiveMonster.cpp') 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(m_BehaviorBreeder); + return static_cast(&m_BehaviorBreeder); } -- cgit v1.2.3