mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
(Settings) action_toggle_bind_setting - guard against going below 0 when
pressing left
This commit is contained in:
parent
f82fd318d2
commit
b38a36b2d6
@ -843,7 +843,10 @@ static int setting_data_action_toggle_bind_device(void *data, unsigned action)
|
||||
if (action == MENU_ACTION_START)
|
||||
*p = 0;
|
||||
else if (action == MENU_ACTION_LEFT)
|
||||
(*p)--;
|
||||
{
|
||||
if (*p > 0)
|
||||
(*p)--;
|
||||
}
|
||||
else if (action == MENU_ACTION_RIGHT)
|
||||
(*p)++;
|
||||
if (*p < -1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user