Skip to content

Commit

Permalink
Fix EOC temperature assignment not taking effect (CleverRaven#55435)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettDong authored Feb 17, 2022
1 parent bf80562 commit 95ff222
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/npctalk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2900,7 +2900,9 @@ static std::function<void( const dialogue &, int )> get_set_int( const JsonObjec
std::string weather_aspect = jo.get_string( "weather" );
if( weather_aspect == "temperature" ) {
return [min, max]( const dialogue & d, int input ) {
get_weather().weather_precise->temperature = handle_min_max( d, input, min, max );;
const int new_temperature = handle_min_max( d, input, min, max );
get_weather().weather_precise->temperature = new_temperature;
get_weather().temperature = new_temperature;
get_weather().clear_temp_cache();
};
} else if( weather_aspect == "windpower" ) {
Expand Down

0 comments on commit 95ff222

Please sign in to comment.