From 3c2c644d45dd79662b995c13214ebe0364f4a6c9 Mon Sep 17 00:00:00 2001 From: Zhilkin Serg Date: Fri, 13 Dec 2024 08:01:35 +0300 Subject: [PATCH] Fix details display in character selection --- src/martialarts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/martialarts.cpp b/src/martialarts.cpp index 32db72ba66598..e83c5fe028876 100644 --- a/src/martialarts.cpp +++ b/src/martialarts.cpp @@ -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( offset ) || action != "SHOW_DESCRIPTION" ) { return false; }