Skip to content

Commit

Permalink
Fix details display in character selection
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhilkinSerg committed Dec 13, 2024
1 parent e4488d9 commit 3c2c644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/martialarts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2500,7 +2500,7 @@ bool ma_style_callback::key( const input_context &ctxt, const input_event &event
uilist * )
{
const std::string &action = ctxt.input_to_action( event );
if( entnum == 0 || action != "SHOW_DESCRIPTION" ) {
if( entnum < static_cast<int>( offset ) || action != "SHOW_DESCRIPTION" ) {
return false;
}

Expand Down

0 comments on commit 3c2c644

Please sign in to comment.