diff --git a/code/modules/mob/living/carbon/human/movement.dm b/code/modules/mob/living/carbon/human/movement.dm index f2bbfe8c4c2..85551cd3db1 100644 --- a/code/modules/mob/living/carbon/human/movement.dm +++ b/code/modules/mob/living/carbon/human/movement.dm @@ -115,7 +115,7 @@ // Wind makes it easier or harder to move, depending on if you're with or against the wind. if(T.outdoors && (T.z <= SSplanets.z_to_planet.len)) - var/datum/planet/P = SSplanets.z_to_planet[z] + var/datum/planet/P = SSplanets.z_to_planet[T.z] if(P) var/datum/weather_holder/WH = P.weather_holder if(WH && WH.wind_speed) // Is there any wind?