fixes lighting turf opacity runtime spam

mmm delicious null entries just love turning all these for-as-anything-in-lists into endless runtime generators.
This commit is contained in:
Verkister
2022-03-21 00:27:28 +02:00
committed by GitHub
parent d19e967043
commit cc4b896956
+1 -1
View File
@@ -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