(Settings) action_toggle_bind_setting - guard against going below 0 when

pressing left
This commit is contained in:
twinaphex 2014-10-24 09:35:05 +02:00
parent f82fd318d2
commit b38a36b2d6

View File

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