From 630749745a423ac2db564a440f70143a7523d9dc Mon Sep 17 00:00:00 2001 From: Binrui Dong Date: Fri, 31 Dec 2021 17:33:12 +0800 Subject: [PATCH] Fix stack-use-after-scope error reported by MSVC ASAN --- src/panels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels.cpp b/src/panels.cpp index 7c4f1fd684145..301b924fc7069 100644 --- a/src/panels.cpp +++ b/src/panels.cpp @@ -705,7 +705,7 @@ std::pair display::temp_text_color( const Character &u ) { /// Find hottest/coldest bodypart // Calculate the most extreme body temperatures - const bodypart_id ¤t_bp_extreme = temp_delta( u ).first; + const bodypart_id current_bp_extreme = temp_delta( u ).first; // printCur the hottest/coldest bodypart std::string temp_string;