Skip to content

Commit

Permalink
Fix ASAN error in limb test. (#78452)
Browse files Browse the repository at this point in the history
  • Loading branch information
akrieger authored Dec 10, 2024
1 parent 7b67e86 commit f369c6f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/limb_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,9 @@ TEST_CASE( "drying_rate", "[character][limb]" )
const weather_manager &weather = get_weather();
w_point &weather_point = *weather.weather_precise;
scoped_weather_override weather_clear( WEATHER_CLEAR );
restore_on_out_of_scope<std::optional<units::temperature>> restore_temp(
weather_point.temperature );
restore_on_out_of_scope restore_temp( weather_point.temperature );
weather_point.temperature = units::from_fahrenheit( 65 );
restore_on_out_of_scope<std::optional<double>> restore_humidity(
weather_point.humidity );
restore_on_out_of_scope restore_humidity( weather_point.humidity );
weather_point.humidity = 66.0f;

CAPTURE( weather.weather_id.c_str() );
Expand Down

0 comments on commit f369c6f

Please sign in to comment.