Cryoing now won't cause items to try and remove themselves from deleted storages. Runtime fix (#17665)

This commit is contained in:
Farie82
2022-05-16 22:40:14 +09:00
committed by GitHub
parent fa3997bb42
commit 61c8684192
+2 -1
View File
@@ -167,7 +167,8 @@ GLOBAL_DATUM_INIT(fire_overlay, /image, image("icon" = 'icons/goonstation/effect
m.unEquip(src, 1)
else if(istype(loc, /obj/item/storage))
var/obj/item/storage/S = loc
S.remove_from_storage(src)
if(!QDELETED(S)) // Can happen when the storage gets deleted, thus deleting the contents
S.remove_from_storage(src) // Not required to call. Will only cause runtimes
QDEL_LIST(actions)
master = null
return ..()