Fix stack_trace caught when doing rig seals

This commit is contained in:
Aronai Sieyes
2021-07-08 00:41:40 -04:00
parent 7fdc689fbf
commit a32b1975ee
+1 -1
View File
@@ -335,7 +335,7 @@
if("helmet")
to_chat(M, "<span class='notice'>\The [piece] hisses [!seal_target ? "closed" : "open"].</span>")
M.update_inv_head()
if(helmet)
if(helmet?.light_system == STATIC_LIGHT)
helmet.update_light(wearer)
//sealed pieces become airtight, protecting against diseases