diff options
author | megamage <none@none> | 2009-08-31 14:30:54 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-31 14:30:54 -0500 |
commit | 7535a64b424ca8e788a6b24711feb5183f2508f7 (patch) | |
tree | 322f66e4374f3823da6e0b13414ab86406c53163 /src | |
parent | ad1acedea73a37a7b3cee07c0088fc40ae8c5f43 (diff) |
*Add a line in ~Spell for debug.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Spell.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 64758d62f94..a7fd33405c6 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -483,6 +483,8 @@ Spell::Spell( Unit* Caster, SpellEntry const *info, bool triggered, uint64 origi Spell::~Spell() { + if(m_caster && m_caster->GetTypeId() == TYPEID_PLAYER) + assert(((Player*)m_caster)->m_spellModTakingSpell != this); delete m_spellValue; } |