aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}