From 2a52e94d1840cc48b8f69df59799208561f79a5d Mon Sep 17 00:00:00 2001 From: Mloc Date: Sun, 27 Oct 2013 15:50:07 +0000 Subject: [PATCH] Hopefully. Hopefully was the key word. Signed-off-by: Mloc --- code/ZAS/ZAS_Zones.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/ZAS/ZAS_Zones.dm b/code/ZAS/ZAS_Zones.dm index 273a88436c7..d4bc832506b 100644 --- a/code/ZAS/ZAS_Zones.dm +++ b/code/ZAS/ZAS_Zones.dm @@ -155,7 +155,10 @@ var/list/CounterDoorDirections = list(SOUTH,EAST) //Which directions doors turfs //Updates the air_unsim var /zone/proc/UpdateUnsimAvg() - if(!unsim_air_needs_update && air_unsim) + if(!unsimulated_tiles || !unsimulated_tiles.len) //if we don't have any unsimulated tiles, we can't do much. + return + + if(!unsim_air_needs_update && air_unsim) //if air_unsim doesn't exist, we need to create it even if we don't need an update. return unsim_air_needs_update = 0