From 5b2df864e31aba9372c5fc0ac9952705d3df54c3 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Mon, 2 Apr 2018 09:30:54 -0400 Subject: [PATCH] Merge pull request #36899 from vuonojenmustaturska/quantumsolace Fixes an edge case with atmos gas mixture garbage collection --- code/modules/atmospherics/gasmixtures/gas_mixture.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/atmospherics/gasmixtures/gas_mixture.dm b/code/modules/atmospherics/gasmixtures/gas_mixture.dm index 60dba541f3..a358c3e29c 100644 --- a/code/modules/atmospherics/gasmixtures/gas_mixture.dm +++ b/code/modules/atmospherics/gasmixtures/gas_mixture.dm @@ -68,7 +68,7 @@ GLOBAL_LIST_INIT(nonreactive_gases, typecacheof(list(/datum/gas/oxygen, /datum/g /datum/gas_mixture/proc/garbage_collect(list/tocheck) var/list/cached_gases = gases for(var/id in (tocheck || cached_gases)) - if(cached_gases[id][MOLES] <= 0 && cached_gases[id][ARCHIVE] <= 0) + if(QUANTIZE(cached_gases[id][MOLES]) <= 0 && QUANTIZE(cached_gases[id][ARCHIVE]) <= 0) cached_gases -= id //PV = nRT