Browse Source

Fix a queued spell crash with custom spells

image 3 years ago
parent
commit
a54d7a4dc2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      EQ2/source/WorldServer/SpellProcess.cpp

+ 2 - 0
EQ2/source/WorldServer/SpellProcess.cpp

@@ -2443,6 +2443,8 @@ void SpellProcess::AddSpellCancel(LuaSpell* spell){
 
 void SpellProcess::DeleteSpell(LuaSpell* spell)
 {
+	RemoveSpellFromQueue(spell->spell, spell->caster);
+
 	if (spell->spell->IsCopiedSpell())
 		safe_delete(spell->spell);