From cc4b896956202d1d4e369dcc6a5e554cddbbfe31 Mon Sep 17 00:00:00 2001 From: Verkister Date: Mon, 21 Mar 2022 00:27:28 +0200 Subject: [PATCH] fixes lighting turf opacity runtime spam mmm delicious null entries just love turning all these for-as-anything-in-lists into endless runtime generators. --- code/modules/lighting/lighting_turf.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/lighting/lighting_turf.dm b/code/modules/lighting/lighting_turf.dm index 3ab854a26f..d6cd0acdc8 100644 --- a/code/modules/lighting/lighting_turf.dm +++ b/code/modules/lighting/lighting_turf.dm @@ -111,7 +111,7 @@ return directional_opacity = NONE for(var/atom/movable/opacity_source as anything in opacity_sources) - if(opacity_source.flags & ON_BORDER) + if(opacity_source && opacity_source.flags & ON_BORDER) directional_opacity |= opacity_source.dir else //If fulltile and opaque, then the whole tile blocks view, no need to continue checking. directional_opacity = ALL_CARDINALS