From f0087fa45253a37c5cf23f1523d985259aac2575 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Mon, 26 Sep 2022 03:18:47 +0200 Subject: [PATCH] [MIRROR] Gets rid of an annoying sporadic CI failure on closets by actually properly checking if they're qdeleted or not, no matter their typepath [MDB IGNORE] (#16437) * Gets rid of an annoying sporadic CI failure on closets by actually properly checking if they're qdeleted or not, no matter their typepath (#70116) * Gets rid of an annoying sporadic CI failure on closets by actually properly checking if they're qdeleted or not, no matter their typepath Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com> --- code/modules/unit_tests/closets.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/unit_tests/closets.dm b/code/modules/unit_tests/closets.dm index 8145e2a0a9b..e1afb47f553 100644 --- a/code/modules/unit_tests/closets.dm +++ b/code/modules/unit_tests/closets.dm @@ -9,7 +9,7 @@ for(var/closet_type in all_closets) var/obj/structure/closet/closet = allocate(closet_type) - if(istype(closet_type, /obj/structure/closet/emcloset) && QDELETED(closet)) // this is here because the emcloset subtype has a chance of returning a qdel hint on initialize + if(QDELETED(closet)) // this is here because the emcloset subtype has a chance of returning a qdel hint on initialize continue // Copy is necessary otherwise closet.contents - immediate_contents returns an empty list