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)

This commit is contained in:
GoldenAlpharex
2022-09-25 17:01:47 -07:00
committed by GitHub
parent d8728a5d6f
commit 95cd5d9f58
+1 -1
View File
@@ -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