From deb354fb6885859e6f6fcc110a64efd8baee3423 Mon Sep 17 00:00:00 2001 From: "Mark Aherne (Faerdan)" Date: Fri, 24 Jan 2014 09:56:02 +0000 Subject: [PATCH] Added no-network check to heat_source to fix a runtime if not connected to a network. --- code/ATMOSPHERICS/components/unary/heat_source.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ATMOSPHERICS/components/unary/heat_source.dm b/code/ATMOSPHERICS/components/unary/heat_source.dm index 01438c32d99..2d3e9b67a8e 100644 --- a/code/ATMOSPHERICS/components/unary/heat_source.dm +++ b/code/ATMOSPHERICS/components/unary/heat_source.dm @@ -26,7 +26,7 @@ process() ..() - if(!on) + if(!on || !network) return 0 var/air_heat_capacity = air_contents.heat_capacity() var/combined_heat_capacity = current_heat_capacity + air_heat_capacity