[MIRROR] Fix button frame hard delete (#28189)

Fix button frame hard delete

Co-authored-by: FlufflesTheDog <piecopresident@gmail.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-06-15 18:37:56 +01:00
committed by GitHub
co-authored by FlufflesTheDog Gandalf
parent 319353ab39
commit c3a4865d3c
+5
View File
@@ -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