From c340e71999b3eef6103ef99ab31ae26c1b887dfb Mon Sep 17 00:00:00 2001 From: Kugamo Date: Sat, 29 Aug 2020 19:07:55 -0500 Subject: [PATCH] ok this is the best solution A single if statement, how elegant --- code/game/objects/items/devices/scanners.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/items/devices/scanners.dm b/code/game/objects/items/devices/scanners.dm index 43697ac4776..88ab27a150f 100644 --- a/code/game/objects/items/devices/scanners.dm +++ b/code/game/objects/items/devices/scanners.dm @@ -72,7 +72,7 @@ REAGENT SCANNER var/turf/U = O.loc if(U && U.intact) O.invisibility = 101 - O.alpha = 255 + if(O) O.alpha = 255 for(var/mob/living/M in T.contents) var/oldalpha = M.alpha if(M.alpha < 255 && istype(M))