*Fix a bug that cause crash when player login.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-01-18 15:04:27 -06:00
parent 9a2abe9000
commit 7fe257a073
+6 -3
View File
@@ -258,9 +258,12 @@ Unit::~Unit()
if(m_charmInfo) delete m_charmInfo; if(m_charmInfo) delete m_charmInfo;
sLog.outDetail("Deconstruct Unit Entry = %u", GetEntry()); if(m_uint32Values)
if(m_scAuras.size()) {
sLog.outError("Unit %u has sc auras during deconstruction", GetEntry()); sLog.outDetail("Deconstruct Unit Entry = %u", GetEntry());
if(m_scAuras.size())
sLog.outError("Unit %u has sc auras during deconstruction", GetEntry());
}
} }
void Unit::Update( uint32 p_time ) void Unit::Update( uint32 p_time )