Skip to content

Commit

Permalink
Better null check
Browse files Browse the repository at this point in the history
Co-authored-by: Luc <[email protected]>
Signed-off-by: PollardTheDragon <[email protected]>
  • Loading branch information
PollardTheDragon and lewcc authored Jan 29, 2025
1 parent 6722c57 commit fa05ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/gamemodes/malfunction/Malf_Modules.dm
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
return
var/closest_camera = null
for(var/obj/machinery/camera/C in A)
if(closest_camera == null)
if(isnull(closest_camera))
closest_camera = C
continue
if(get_dist(closest_camera, target) > get_dist(C, target))
Expand Down

0 comments on commit fa05ffd

Please sign in to comment.