Fixes the atmos subsystem locking up on rare occasions (#56556)

This commit is contained in:
LemonInTheDark
2021-02-07 12:14:02 -08:00
committed by GitHub
parent d462a7471a
commit 3af72aa5f6

View File

@@ -94,6 +94,8 @@ SUBSYSTEM_DEF(air)
var/list/pipenet_rebuilds = pipenets_needing_rebuilt
for(var/thing in pipenet_rebuilds)
var/obj/machinery/atmospherics/AT = thing
if(!thing) //If a null somehow shows up here, this next line runtimes and the subsystem dies
continue
AT.build_network()
cached_cost += TICK_USAGE_REAL - timer
pipenets_needing_rebuilt.Cut()