Fix offset + crash when clearing input port binds (#13811)

This commit is contained in:
Tony 2022-04-01 19:13:36 +03:00 committed by GitHub
parent 9276921f5d
commit 754d3b224f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;