From 61995a687579ee910f4dc11f27c94033b47fe68a Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Sat, 4 Feb 2023 19:01:16 -0600 Subject: [PATCH] makes morph spells GC properly (#20290) * makes morph spells GC properly * ryan's request --- code/game/gamemodes/miniantags/morph/morph.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/game/gamemodes/miniantags/morph/morph.dm b/code/game/gamemodes/miniantags/morph/morph.dm index c31de3089aa..55d4e897c8b 100644 --- a/code/game/gamemodes/miniantags/morph/morph.dm +++ b/code/game/gamemodes/miniantags/morph/morph.dm @@ -65,6 +65,12 @@ pass_airlock_spell = new AddSpell(pass_airlock_spell) +/mob/living/simple_animal/hostile/morph/Destroy() + QDEL_NULL(mimic_spell) + QDEL_NULL(ambush_spell) + QDEL_NULL(pass_airlock_spell) + return ..() + /mob/living/simple_animal/hostile/morph/Stat(Name, Value) ..() if(statpanel("Status"))