From 95cd5d9f586ecb5c06dcb997509bb99cafdbd098 Mon Sep 17 00:00:00 2001 From: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com> Date: Sun, 25 Sep 2022 20:01:47 -0400 Subject: [PATCH] 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) --- 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