Fixes Unusual Container Recursion Bug (#13980)

This commit is contained in:
Doxxmedearly
2022-05-17 03:23:19 +02:00
committed by GitHub
parent 5af3fc8248
commit 62440aa0a1
@@ -540,6 +540,7 @@
)
var/list/crates_to_use = typesof(/obj/structure/closet/crate) - typesof(/obj/structure/closet/crate/secure/gear_loadout)
crates_to_use -= /obj/structure/closet/crate/loot
var/icontype = pick(crates_to_use)
var/obj/structure/closet/crate/C = new icontype(get_turf(src), TRUE) //TRUE as we do not want the crate to fill(), we will fill it ourselves.