From a32b1975ee1f78f34aef9fe92cc822f0a65ebf19 Mon Sep 17 00:00:00 2001 From: Aronai Sieyes Date: Thu, 8 Jul 2021 00:41:40 -0400 Subject: [PATCH] Fix stack_trace caught when doing rig seals --- code/modules/clothing/spacesuits/rig/rig.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/clothing/spacesuits/rig/rig.dm b/code/modules/clothing/spacesuits/rig/rig.dm index f442ecff07..d518848dc2 100644 --- a/code/modules/clothing/spacesuits/rig/rig.dm +++ b/code/modules/clothing/spacesuits/rig/rig.dm @@ -335,7 +335,7 @@ if("helmet") to_chat(M, "\The [piece] hisses [!seal_target ? "closed" : "open"].") M.update_inv_head() - if(helmet) + if(helmet?.light_system == STATIC_LIGHT) helmet.update_light(wearer) //sealed pieces become airtight, protecting against diseases