*Try to fix a crash bug.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-24 22:25:22 -06:00
parent 8413356d0e
commit fe08615d17
3 changed files with 9 additions and 20 deletions
+8 -4
View File
@@ -162,12 +162,16 @@ m_meleeDamageSchoolMask(SPELL_SCHOOL_MASK_NORMAL),m_creatureInfo(NULL), m_DBTabl
Creature::~Creature()
{
CleanupsBeforeDelete();
m_vendorItemCounts.clear();
delete i_AI;
i_AI = NULL;
if(i_AI)
{
delete i_AI;
i_AI = NULL;
}
if(m_uint32Values)
sLog.outDetail("Deconstruct Creature Entry = %u", GetEntry());
}
void Creature::AddToWorld()