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. "