*Add a line in ~Spell for debug.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-31 14:30:54 -05:00
parent ad1acedea7
commit 7535a64b42
+2
View File
@@ -483,6 +483,8 @@ Spell::Spell( Unit* Caster, SpellEntry const *info, bool triggered, uint64 origi
Spell::~Spell() Spell::~Spell()
{ {
if(m_caster && m_caster->GetTypeId() == TYPEID_PLAYER)
assert(((Player*)m_caster)->m_spellModTakingSpell != this);
delete m_spellValue; delete m_spellValue;
} }