From 7535a64b424ca8e788a6b24711feb5183f2508f7 Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 31 Aug 2009 14:30:54 -0500 Subject: *Add a line in ~Spell for debug. --HG-- branch : trunk --- src/game/Spell.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3