diff --git a/src/weather.cpp b/src/weather.cpp index 3ae66dcd3f8bc..a4348ca4b75b6 100644 --- a/src/weather.cpp +++ b/src/weather.cpp @@ -1048,11 +1048,11 @@ const weather_generator &weather_manager::get_cur_weather_gen() const void weather_manager::update_weather() { - w_point &w = *weather_precise; - winddirection = wind_direction_override ? *wind_direction_override : w.winddirection; - windspeed = windspeed_override ? *windspeed_override : w.windpower; + winddirection = wind_direction_override ? *wind_direction_override : winddirection; + windspeed = windspeed_override ? *windspeed_override : windspeed; Character &player_character = get_player_character(); if( weather_id == WEATHER_NULL || calendar::turn >= nextweather ) { + w_point &w = *weather_precise; const weather_generator &weather_gen = get_cur_weather_gen(); w = weather_gen.get_weather( player_character.global_square_location(), calendar::turn, g->get_seed() );