diff --git a/code/controllers/subsystem/air.dm b/code/controllers/subsystem/air.dm index 32aa9afcbb1..dd0ad3267fe 100644 --- a/code/controllers/subsystem/air.dm +++ b/code/controllers/subsystem/air.dm @@ -94,10 +94,8 @@ SUBSYSTEM_DEF(air) var/list/pipenet_rebuilds = pipenets_needing_rebuilt for(var/thing in pipenet_rebuilds) var/obj/machinery/atmospherics/AT = thing - //SKYRAT EDIT CHANGE BEGIN - MISC - if(!istype(AT)) + if(!thing) //If a null somehow shows up here, this next line runtimes and the subsystem dies continue - //SKYRAT EDIT CHANGE BEGIN - MISC AT.build_network() cached_cost += TICK_USAGE_REAL - timer pipenets_needing_rebuilt.Cut()