1
0
Fork 0

Fixed a missing initialization in cMonster.

This should fix commit ff762a7ece 's all-mobs burning.
This commit is contained in:
madmaxoft 2013-09-07 16:42:34 +02:00
parent 67e8f75318
commit 5f8a46373d
1 changed files with 3 additions and 2 deletions

View File

@ -26,6 +26,8 @@
cMonster::cMonster(const AString & a_ConfigName, char a_ProtocolMobType, const AString & a_SoundHurt, const AString & a_SoundDeath, double a_Width, double a_Height)
: super(etMob, a_Width, a_Height)
, m_Target(NULL)
, m_AttackRate(3)
, idle_interval(0)
, m_bMovingToDestination(false)
, m_DestinationTime( 0 )
, m_DestroyTimer( 0 )
@ -40,8 +42,7 @@ cMonster::cMonster(const AString & a_ConfigName, char a_ProtocolMobType, const A
, m_AttackDamage(1.0f)
, m_AttackRange(5.0f)
, m_AttackInterval(0)
, m_AttackRate(3)
, idle_interval(0)
, m_BurnsInDaylight(false)
{
if (!a_ConfigName.empty())
{