From cab914d7b82660013ce1ac4c2171dd621b0ba786 Mon Sep 17 00:00:00 2001 From: Doubleumc Date: Tue, 20 Aug 2024 16:12:55 -0400 Subject: [PATCH] Suit storages qdel pockets on Destroy() (#6990) # About the pull request When `Destroy()`ing, suit storages will now qdel and clean their reference to the `pockets` var. # Explain why it's good for the game Harddels bad. # Testing Photographs and Procedure
Screenshots & Videos Put screenshots and videos here with an empty line between the screenshots and the `
` tags.
# Changelog No player facing changes. --- code/modules/clothing/suits/storage.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/clothing/suits/storage.dm b/code/modules/clothing/suits/storage.dm index 0d5fc31a2560..7ac0ddc018fa 100644 --- a/code/modules/clothing/suits/storage.dm +++ b/code/modules/clothing/suits/storage.dm @@ -10,6 +10,10 @@ pockets.max_storage_space = 4 flags_atom |= USES_HEARING +/obj/item/clothing/suit/storage/Destroy() + QDEL_NULL(pockets) + return ..() + /obj/item/clothing/suit/storage/get_pockets() if(pockets) return pockets