From b71db4c2220d3fd955ecb2c45d7706084462ad02 Mon Sep 17 00:00:00 2001 From: Crazylemon64 Date: Tue, 23 Aug 2016 01:33:06 -0700 Subject: [PATCH] Fixes a runtime when creating a new disposal after roundstart --- code/modules/recycling/disposal.dm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/modules/recycling/disposal.dm b/code/modules/recycling/disposal.dm index 39945505aed..85657dd2b5b 100644 --- a/code/modules/recycling/disposal.dm +++ b/code/modules/recycling/disposal.dm @@ -27,12 +27,10 @@ idle_power_usage = 100 // create a new disposal -// find the attached trunk (if present) and init gas resvr. +// find the attached trunk (if present) /obj/machinery/disposal/New() ..() trunk_check() - - air_contents = new/datum/gas_mixture() //gas.volume = 1.05 * CELLSTANDARD update() @@ -59,6 +57,7 @@ var/datum/gas_mixture/env = new env.copy_from(L.return_air()) var/datum/gas_mixture/removed = env.remove(SEND_PRESSURE + 1) + air_contents = new air_contents.merge(removed) trunk_check()