From 3399e542885c94f32b99aec41ee1970dc5bb7529 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 16 Feb 2021 14:24:25 -0500 Subject: [PATCH] Additional GC Fixes --- code/game/objects/effects/effect_system.dm | 3 +++ .../mob/living/simple_mob/subtypes/mechanical/mecha/mecha.dm | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/code/game/objects/effects/effect_system.dm b/code/game/objects/effects/effect_system.dm index 1e804bbb266..b069a7c3358 100644 --- a/code/game/objects/effects/effect_system.dm +++ b/code/game/objects/effects/effect_system.dm @@ -33,6 +33,9 @@ would spawn and follow the beaker, even if it is carried or thrown. proc/start() + proc/Destroy() + holder = null + return ..() ///////////////////////////////////////////// // GENERIC STEAM SPREAD SYSTEM diff --git a/code/modules/mob/living/simple_mob/subtypes/mechanical/mecha/mecha.dm b/code/modules/mob/living/simple_mob/subtypes/mechanical/mecha/mecha.dm index d29981726d8..d5ba330c0d6 100644 --- a/code/modules/mob/living/simple_mob/subtypes/mechanical/mecha/mecha.dm +++ b/code/modules/mob/living/simple_mob/subtypes/mechanical/mecha/mecha.dm @@ -57,7 +57,7 @@ return ..() /mob/living/simple_mob/mechanical/mecha/Destroy() - qdel(sparks) + qdel_null(sparks) return ..() /mob/living/simple_mob/mechanical/mecha/death()