From 73ec2d50fab29032ec3ed3a5e9a0e497e97e5716 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 8 Apr 2009 12:36:01 -0500 Subject: *Only clear spellcontainer when current spell is cancelled spell. --HG-- branch : trunk --- src/game/Spell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/Spell.cpp') diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index e8a5724dfb0..4396c2f94f1 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -2134,7 +2134,7 @@ void Spell::cancel() return; SetReferencedFromCurrent(false); - if(m_selfContainer) + if(m_selfContainer && *m_selfContainer == this) *m_selfContainer = NULL; uint32 oldState = m_spellState; -- cgit v1.2.3