Properly initialize CharmInfo states (fixes warning about noninitialized pointers) - Fix/patch by ge0rg

--HG--
branch : trunk
This commit is contained in:
click
2010-07-04 16:27:33 +02:00
parent cdf3514603
commit 962b48c6a3
+2 -1
View File
@@ -13398,7 +13398,8 @@ void Unit::DeleteCharmInfo()
}
CharmInfo::CharmInfo(Unit* unit)
: m_unit(unit), m_CommandState(COMMAND_FOLLOW), m_petnumber(0), m_barInit(false)
: m_unit(unit), m_CommandState(COMMAND_FOLLOW), m_petnumber(0), m_barInit(false),
m_isCommandAttack(false), m_isAtStay(false), m_isFollowing(false), m_isReturning(false)
{
for (uint8 i = 0; i < MAX_SPELL_CHARM; ++i)
m_charmspells[i].SetActionAndType(0,ACT_DISABLED);