Skip to content

Commit

Permalink
fix loading away mission exploding the server
Browse files Browse the repository at this point in the history
  • Loading branch information
xTrainx committed Sep 7, 2024
1 parent 2ece5fd commit 7e62e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/controllers/subsystem/nightcycle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ SUBSYSTEM_DEF(nightcycle)
luminosity = 1
for(var/dir in GLOB.alldirs)
var/turf/neighbor = get_step(src, dir)
if(!neighbor || neighbor.sunlight_state != NO_SUNLIGHT)
if(!neighbor || neighbor?.sunlight_state && neighbor?.sunlight_state != NO_SUNLIGHT)
continue
neighbor.sunlight_state = SUNLIGHT_BORDER
if(neighbor.flags_1 & INITIALIZED_1)
Expand Down

0 comments on commit 7e62e66

Please sign in to comment.