From 6a84ea02a8fc3a193d14b15603969c87757930e8 Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Fri, 15 May 2015 23:09:09 -0400 Subject: [PATCH] Add ALL the sanity --- code/modules/lighting/light_source.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/lighting/light_source.dm b/code/modules/lighting/light_source.dm index 5b7d706d3da..22a734b436a 100644 --- a/code/modules/lighting/light_source.dm +++ b/code/modules/lighting/light_source.dm @@ -51,7 +51,7 @@ destroyed = 1 force_update() if(source_atom && source_atom.light_sources) source_atom.light_sources -= src - if(top_atom) top_atom.light_sources -= src + if(top_atom && top_atom.light_sources) top_atom.light_sources -= src /datum/light_source/proc/update(atom/new_top_atom) if(new_top_atom && new_top_atom != top_atom)