From fb7da485881dc99091958076befbd0ec4ca3169a Mon Sep 17 00:00:00 2001 From: Yoshax Date: Thu, 30 Mar 2017 16:40:33 +0100 Subject: [PATCH] Fixes an issue with smes deconstruction --- code/modules/power/smes_construction.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/power/smes_construction.dm b/code/modules/power/smes_construction.dm index c71f0e35e7f..de0c339c7cf 100644 --- a/code/modules/power/smes_construction.dm +++ b/code/modules/power/smes_construction.dm @@ -345,7 +345,10 @@ usr << "\red You have disassembled the SMES cell!" var/obj/structure/frame/M = new /obj/structure/frame(src.loc) - M.frame_type = "machine" + M.frame_type = new /datum/frame/frame_types/machine + M.anchored = 1 + var/obj/item/weapon/circuitboard/C = new /obj/item/weapon/circuitboard/smes + M.circuit = C M.state = 2 M.icon_state = "machine_1" for(var/obj/I in component_parts)