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.
This commit is contained in:
Atlantis
2015-06-06 09:43:39 +02:00
parent 69e0ebf71e
commit b16bf61d03

View File

@@ -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.