Fixes a runtime with weather

This commit is contained in:
Leo
2016-10-30 11:59:42 -02:00
committed by GitHub
parent ef38656c47
commit 03b4df6490
+1 -1
View File
@@ -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