Fix a queued spell crash with custom spells

This commit is contained in:
image 2020-09-10 12:44:12 -04:00
parent b44dc4c768
commit a54d7a4dc2

View file

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