From 6346e82f7dd8f18636fe2542b90f3bed7af78f30 Mon Sep 17 00:00:00 2001 From: Razharas Date: Fri, 20 Mar 2015 05:50:06 +0300 Subject: [PATCH] Fixes fires in the walls Fixes fires in the walls --- code/LINDA/LINDA_fire.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/LINDA/LINDA_fire.dm b/code/LINDA/LINDA_fire.dm index 082608ae120..a8e338695bf 100644 --- a/code/LINDA/LINDA_fire.dm +++ b/code/LINDA/LINDA_fire.dm @@ -61,7 +61,7 @@ /obj/effect/hotspot/proc/perform_exposure() var/turf/simulated/location = loc - if(!istype(location)) return 0 + if(!istype(location) || !(location.air)) return 0 if(volume > CELL_VOLUME*0.95) bypassing = 1 else bypassing = 0 @@ -101,7 +101,7 @@ Kill() return - if(location.air.toxins < 0.5 || location.air.oxygen < 0.5) + if(!(location.air) || location.air.toxins < 0.5 || location.air.oxygen < 0.5) Kill() return