mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
Avoid crash if ozone sidebar_index_size is 0 (#15693)
This commit is contained in:
parent
c5f6175f12
commit
6e453b5ba0
@ -8351,7 +8351,7 @@ static enum menu_action ozone_parse_menu_entry_action(
|
||||
|
||||
if (menu_st->scroll.mode == MENU_SCROLL_PAGE)
|
||||
new_selection = (int)(tab_selection - 10);
|
||||
else
|
||||
else if (ozone->sidebar_index_size)
|
||||
{
|
||||
/* Alphabetical scroll */
|
||||
size_t l = ozone->sidebar_index_size - 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user