Another datum initialization hotfix. Initial does not create lists causing type mismatches.

This commit is contained in:
clusterfack
2015-03-23 04:49:37 -05:00
parent 40ddfba77c
commit 47ab42f2ba
5 changed files with 23 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
/datum/pipeline
var/datum/gas_mixture/air
var/list/obj/machinery/atmospherics/pipe/members
var/list/obj/machinery/atmospherics/pipe/edges //Used for building networks
var/list/obj/machinery/atmospherics/pipe/members = list()
var/list/obj/machinery/atmospherics/pipe/edges = list() //Used for building networks
var/datum/pipe_network/network
@@ -25,6 +25,11 @@
for(var/obj/machinery/atmospherics/pipe/M in members) //Edges are a subset of members
M.parent = null
/datum/pipeline/resetVariables()
..("members", "edges")
members = list()
edges = list()
/datum/pipeline/proc/process()//This use to be called called from the pipe networks
if((world.timeofday - last_pressure_check) / 10 >= PRESSURE_CHECK_DELAY)
//Check to see if pressure is within acceptable limits