From 754d3b224f38655cb39704394f1b9361263e6b06 Mon Sep 17 00:00:00 2001 From: Tony <45124675+sonninnos@users.noreply.github.com> Date: Fri, 1 Apr 2022 19:13:36 +0300 Subject: [PATCH] Fix offset + crash when clearing input port binds (#13811) --- menu/cbs/menu_cbs_scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu/cbs/menu_cbs_scan.c b/menu/cbs/menu_cbs_scan.c index 6e155035cb..01ea18462c 100644 --- a/menu/cbs/menu_cbs_scan.c +++ b/menu/cbs/menu_cbs_scan.c @@ -192,7 +192,7 @@ static int action_scan_input_desc(const char *path, inp_desc_user = (unsigned)(player_no_str - 1); /* This hardcoded value may cause issues if any entries are added on top of the input binds */ - key = (unsigned)(idx - 7); + key = (unsigned)(idx - 6); /* Select the reorderer bind */ key = (key < RARCH_ANALOG_BIND_LIST_END) ? input_config_bind_order[key] : key;