Skip to content

Commit

Permalink
fix: armor layer not showing all first (cataclysmbnteam#3432)
Browse files Browse the repository at this point in the history
as always, this part of code is rather spaghetti, nice...
  • Loading branch information
scarf005 authored Oct 15, 2023
1 parent 1118e81 commit a6ba0a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/armor_layers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 [<color_yellow>%s</color>] for help. "
Expand Down

0 comments on commit a6ba0a0

Please sign in to comment.