[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 <jzo123@hotmail.com>
This commit is contained in:
SkyratBot
2021-02-08 23:38:45 +00:00
committed by GitHub
co-authored by LemonInTheDark Gandalf2k15
parent 02571bae25
commit ed4608a7bb
+1 -3
View File
@@ -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()