aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 857bf19ac31..4bb55ceee04 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -2225,7 +2225,7 @@ void Spell::cancel()
return;
SetReferencedFromCurrent(false);
- if(m_selfContainer)
+ if(m_selfContainer && *m_selfContainer == this)
*m_selfContainer = NULL;
uint32 oldState = m_spellState;