From f04fe0de1caca8419f1db7d444e60150e2398c6b Mon Sep 17 00:00:00 2001 From: xTrainx Date: Tue, 24 Sep 2024 19:41:47 -0400 Subject: [PATCH] fix away mission for realsies --- code/controllers/subsystem/nightcycle.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/controllers/subsystem/nightcycle.dm b/code/controllers/subsystem/nightcycle.dm index 96b29f0bf5..a4ea2a04b7 100644 --- a/code/controllers/subsystem/nightcycle.dm +++ b/code/controllers/subsystem/nightcycle.dm @@ -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 && neighbor?.sunlight_state != NO_SUNLIGHT) + if(!neighbor || !neighbor.type || neighbor?.sunlight_state && neighbor?.sunlight_state != NO_SUNLIGHT) continue neighbor.sunlight_state = SUNLIGHT_BORDER if(neighbor.flags_1 & INITIALIZED_1)