mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 07:38:05 +01:00
[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:
co-authored by
FlufflesTheDog
Gandalf
parent
319353ab39
commit
c3a4865d3c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user