Fixed implementations of Destroy() not calling parent (#27068)

* Fixed implementations of Destroy() not calling parent

* I forgot to commit garbage.dm
This commit is contained in:
DamianX
2020-07-11 21:27:05 +02:00
committed by GitHub
parent 6cb1ed1d33
commit d4d08bfef5
21 changed files with 32 additions and 24 deletions

View File

@@ -14,6 +14,7 @@
/datum/pipeline/Destroy()
if(network) //For the pipenet rebuild
qdel(network)
network = null
if(air && air.volume) //For the pipeline rebuild next tick
temporarily_store_air()
qdel(air)
@@ -21,6 +22,9 @@
//Null the fuck out of all these references
for(var/obj/machinery/atmospherics/pipe/M in members) //Edges are a subset of members
M.parent = null
members = null
edges = null
..()
/datum/pipeline/proc/process()//This use to be called called from the pipe networks
if((world.timeofday - last_pressure_check) / 10 >= PRESSURE_CHECK_DELAY)