From fdd51450fd95e15d06beff9d6e84dab70c4e3650 Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Mon, 23 Jan 2023 16:37:55 -0600 Subject: [PATCH] portable camera GC improvements (#20287) * portable camera GC improvements * Oops didn't see this Co-authored-by: Farie82 * Better return structure Co-authored-by: Farie82 Co-authored-by: Farie82 --- code/modules/clothing/spacesuits/ert.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/clothing/spacesuits/ert.dm b/code/modules/clothing/spacesuits/ert.dm index 2aab0f09fc6..d40357dbb62 100644 --- a/code/modules/clothing/spacesuits/ert.dm +++ b/code/modules/clothing/spacesuits/ert.dm @@ -48,6 +48,10 @@ if(in_range(user, src) && has_camera) . += "This helmet has a built-in camera. It's [camera ? "" : "in"]active." +/obj/item/clothing/head/helmet/space/hardsuit/ert/Destroy() + QDEL_NULL(camera) + return ..() + /obj/item/clothing/suit/space/hardsuit/ert name = "emergency response team suit" desc = "A suit worn by members of the Nanotrasen Emergency Response Team. Armoured, space ready, and fire resistant."