From f369c6f2c263939fd3725c5c17eed6109ed52392 Mon Sep 17 00:00:00 2001
From: akrieger <akrieger@users.noreply.github.com>
Date: Mon, 9 Dec 2024 21:24:20 -0800
Subject: [PATCH] Fix ASAN error in limb test. (#78452)

---
 tests/limb_test.cpp | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/tests/limb_test.cpp b/tests/limb_test.cpp
index cbd0229b855c7..0225ad738edc5 100644
--- a/tests/limb_test.cpp
+++ b/tests/limb_test.cpp
@@ -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() );