Explorar el Código

Fix a queued spell crash with custom spells

image hace 3 años
padre
commit
a54d7a4dc2
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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);