From a6ba0a099e63874e142a21944263a44c02d3e4d8 Mon Sep 17 00:00:00 2001 From: scarf Date: Sun, 15 Oct 2023 13:27:08 +0900 Subject: [PATCH] fix: armor layer not showing all first (#3432) as always, this part of code is rather spaghetti, nice... --- src/armor_layers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/armor_layers.cpp b/src/armor_layers.cpp index b509d143f213..3d31d36b6878 100644 --- a/src/armor_layers.cpp +++ b/src/armor_layers.cpp @@ -556,7 +556,7 @@ void show_armor_layers_ui( Character &who ) // top bar wprintz( w_sort_cat, c_white, _( "Sort Armor" ) ); - std::string temp = bp != bodypart_id( "num_bp" ) ? body_part_name_as_heading( bp, 1 ) : _( "All" ); + const auto temp = tabindex != body_part::num_bp ? body_part_name_as_heading( bp, 1 ) : _( "All" ); wprintz( w_sort_cat, c_yellow, " << %s >>", temp ); right_print( w_sort_cat, 0, 0, c_white, string_format( _( "Press [%s] for help. "