Skip to content

Commit

Permalink
Fix stack-use-after-scope error reported by MSVC ASAN
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettDong committed Dec 31, 2021
1 parent 524a7db commit 6307497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ std::pair<std::string, nc_color> display::temp_text_color( const Character &u )
{
/// Find hottest/coldest bodypart
// Calculate the most extreme body temperatures
const bodypart_id &current_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;
Expand Down

0 comments on commit 6307497

Please sign in to comment.