mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-15 23:06:40 +00:00
Prevent MENU_ACTION_RIGHT from crashing the application if there
are no entries in the list
This commit is contained in:
parent
7521b9fcda
commit
ad301b92cc
@ -1888,7 +1888,10 @@ static int action_toggle_scroll(unsigned type, const char *label,
|
||||
menu_navigation_set(driver.menu,
|
||||
driver.menu->selection_ptr + fast_scroll_speed, true);
|
||||
else
|
||||
menu_navigation_set_last(driver.menu);
|
||||
{
|
||||
if ((menu_list_get_size(driver.menu->menu_list) > 0))
|
||||
menu_navigation_set_last(driver.menu);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user