From bf04ec4b3484777ea9475cfc7b97986b3e6ef318 Mon Sep 17 00:00:00 2001 From: hal9000PR Date: Sat, 18 Sep 2021 23:44:10 +0100 Subject: [PATCH] fix --- code/modules/projectiles/gun.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/projectiles/gun.dm b/code/modules/projectiles/gun.dm index fc650f1810f..b69482fdf6c 100644 --- a/code/modules/projectiles/gun.dm +++ b/code/modules/projectiles/gun.dm @@ -403,7 +403,7 @@ return TRUE /obj/item/gun/extinguish_light() - if(gun_light.on) + if(gun_light?.on) toggle_gunlight() visible_message("[src]'s light fades and turns off.")