Add null checks

This commit is contained in:
psq95
2023-05-13 23:50:13 +01:00
parent b0d6c82c79
commit dfeb85bfa4
5 changed files with 20 additions and 19 deletions
+1 -1
View File
@@ -316,7 +316,7 @@
on_mob.forceMove(scanning)
for(var/i in 1 to light_beam_distance)
scanning = get_step(scanning, scandir)
if(scanning.opacity || scanning.has_opaque_atom)
if(scanning?.opacity || scanning?.has_opaque_atom)
stop = TRUE
var/obj/effect/abstract/eye_lighting/L = LAZYACCESS(eye_lighting, i)
if(stop)