From 0500be9b35affb5a3241c7b55c740a53fe01279f Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Mon, 2 Jul 2018 08:44:50 -0500 Subject: [PATCH] [MIRROR] Fixes some shard harddel stuff. (#7299) * Fixes some shard harddel stuff. (#38799) * Fixes some shard harddel stuff. --- code/game/machinery/doors/windowdoor.dm | 3 +-- code/game/objects/structures/tables_racks.dm | 3 +-- code/game/objects/structures/window.dm | 1 + 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/code/game/machinery/doors/windowdoor.dm b/code/game/machinery/doors/windowdoor.dm index 702583d01a..0d72a08f1f 100644 --- a/code/game/machinery/doors/windowdoor.dm +++ b/code/game/machinery/doors/windowdoor.dm @@ -38,8 +38,7 @@ /obj/machinery/door/window/Destroy() density = FALSE - for(var/I in debris) - qdel(I) + QDEL_LIST(debris) if(obj_integrity == 0) playsound(src, "shatter", 70, 1) electronics = null diff --git a/code/game/objects/structures/tables_racks.dm b/code/game/objects/structures/tables_racks.dm index 0d7500ebf2..5ec1c31d30 100644 --- a/code/game/objects/structures/tables_racks.dm +++ b/code/game/objects/structures/tables_racks.dm @@ -187,8 +187,7 @@ debris += new /obj/item/shard /obj/structure/table/glass/Destroy() - for(var/i in debris) - qdel(i) + QDEL_LIST(debris) . = ..() /obj/structure/table/glass/Crossed(atom/movable/AM) diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm index 38efe39a2d..928c0b4734 100644 --- a/code/game/objects/structures/window.dm +++ b/code/game/objects/structures/window.dm @@ -292,6 +292,7 @@ var/obj/item/I = i I.forceMove(drop_location()) transfer_fingerprints_to(I) + debris -= I qdel(src) update_nearby_icons()