mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +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…
x
Reference in New Issue
Block a user