aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-31 14:30:54 -0500
committermegamage <none@none>2009-08-31 14:30:54 -0500
commit7535a64b424ca8e788a6b24711feb5183f2508f7 (patch)
tree322f66e4374f3823da6e0b13414ab86406c53163
parentad1acedea73a37a7b3cee07c0088fc40ae8c5f43 (diff)
*Add a line in ~Spell for debug.
--HG-- branch : trunk
-rw-r--r--src/game/Spell.cpp2
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;
}