From ed4608a7bbb39208e27f14057461ca4c8f91bbc3 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 9 Feb 2021 00:38:45 +0100 Subject: [PATCH] [MIRROR] Fixes the atmos subsystem locking up on rare occasions (#3182) * Fixes the atmos subsystem locking up on rare occasions * Update air.dm Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Co-authored-by: Gandalf2k15 --- code/controllers/subsystem/air.dm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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()