From 46b09b4efbf7d965bcdc97c3b8d5696bf2b93f04 Mon Sep 17 00:00:00 2001 From: Bedshaped Date: Mon, 19 Sep 2016 05:59:01 +0100 Subject: [PATCH] Fixes #943 (#950) --- code/modules/events/vent_clog.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/events/vent_clog.dm b/code/modules/events/vent_clog.dm index 99dcab70313..7e6bd6f7e8d 100644 --- a/code/modules/events/vent_clog.dm +++ b/code/modules/events/vent_clog.dm @@ -14,6 +14,8 @@ /datum/event/vent_clog/setup() endWhen = rand(25, 100) for(var/obj/machinery/atmospherics/unary/vent_scrubber/temp_vent in machines) + if(!temp_vent) + continue if(temp_vent.z in config.station_levels)//STATION ZLEVEL if(temp_vent.network.normal_members.len > 20) vents += temp_vent