From b16bf61d03930e8841a9db5eda9d0e04036668c6 Mon Sep 17 00:00:00 2001 From: Atlantis Date: Sat, 6 Jun 2015 09:43:39 +0200 Subject: [PATCH] Implements Destroy() for buildable SMES units. - This also means GC errors for SMES coils and probably cable coils are fixed. Both of these things are in used in SMESs' construction components. --- code/modules/power/smes_construction.dm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/modules/power/smes_construction.dm b/code/modules/power/smes_construction.dm index b2e584c1366..0160868a14e 100644 --- a/code/modules/power/smes_construction.dm +++ b/code/modules/power/smes_construction.dm @@ -75,6 +75,15 @@ charge = 0 should_be_mapped = 1 +/obj/machinery/power/smes/buildable/Destroy() + qdel(wires) + if(component_parts) + for(var/atom/A in component_parts) + qdel(A) + + return ..() + + // Proc: process() // Parameters: None // Description: Uses parent process, but if grounding wire is cut causes sparks to fly around.