From 26f293a2968c79f5b301dd3b4170ff57eaea8fe8 Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Thu, 25 Aug 2016 23:59:43 -0700 Subject: [PATCH] [s]fixes qdel lag from computers in chasms (#20127) * fixes qdel lag from computers in chasms * Update computer.dm --- code/modules/modular_computers/computers/item/computer.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/modular_computers/computers/item/computer.dm b/code/modules/modular_computers/computers/item/computer.dm index 71bfc52cfe4..ecfbb77e79a 100644 --- a/code/modules/modular_computers/computers/item/computer.dm +++ b/code/modules/modular_computers/computers/item/computer.dm @@ -67,7 +67,10 @@ kill_program(forced = TRUE) STOP_PROCESSING(SSobj, src) for(var/H in all_components) - qdel(H) + var/obj/item/weapon/computer_hardware/CH = H + if(CH.holder == src) + CH.holder = null + qdel(CH) return ..() // Eject ID card from computer, if it has ID slot with card inside.