Fix a queued spell crash with custom spells
This commit is contained in:
parent
b44dc4c768
commit
a54d7a4dc2
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue