mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +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)
|
if (action == MENU_ACTION_START)
|
||||||
*p = 0;
|
*p = 0;
|
||||||
else if (action == MENU_ACTION_LEFT)
|
else if (action == MENU_ACTION_LEFT)
|
||||||
(*p)--;
|
{
|
||||||
|
if (*p > 0)
|
||||||
|
(*p)--;
|
||||||
|
}
|
||||||
else if (action == MENU_ACTION_RIGHT)
|
else if (action == MENU_ACTION_RIGHT)
|
||||||
(*p)++;
|
(*p)++;
|
||||||
if (*p < -1)
|
if (*p < -1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user