From 03b4df64900aec180257ce3bf9d342148cd1530e Mon Sep 17 00:00:00 2001 From: Leo Date: Sun, 30 Oct 2016 11:59:42 -0200 Subject: [PATCH] Fixes a runtime with weather --- code/datums/weather/weather.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/weather/weather.dm b/code/datums/weather/weather.dm index a02e516c942..dc8857b24b8 100644 --- a/code/datums/weather/weather.dm +++ b/code/datums/weather/weather.dm @@ -110,7 +110,7 @@ /datum/weather/proc/can_impact(mob/living/L) //Can this weather impact a mob? var/turf/mob_turf = get_turf(L) - if(mob_turf.z != target_z) + if(mob_turf && (mob_turf.z != target_z)) return if(immunity_type in L.weather_immunities) return