From c3a4865d3cbbb252e28b9caeefc6e41838aa8c46 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sat, 15 Jun 2024 19:37:56 +0200 Subject: [PATCH] [MIRROR] Fix button frame hard delete (#28189) Fix button frame hard delete Co-authored-by: FlufflesTheDog Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com> --- code/game/machinery/buttons.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/game/machinery/buttons.dm b/code/game/machinery/buttons.dm index 6570d022a49..7b66872f52b 100644 --- a/code/game/machinery/buttons.dm +++ b/code/game/machinery/buttons.dm @@ -64,6 +64,11 @@ find_and_hang_on_wall() register_context() +/obj/machinery/button/Destroy() + QDEL_NULL(device) + QDEL_NULL(board) + return ..() + /obj/machinery/button/proc/setup_device() if(id && istype(device, /obj/item/assembly/control)) var/obj/item/assembly/control/control_device = device