*Only clear spellcontainer when current spell is cancelled spell.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-08 12:36:01 -05:00
parent 2ebeb198ad
commit 73ec2d50fa

View File

@@ -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;