mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
Fix overlay next_index for unnamed targets (#14562)
This commit is contained in:
parent
cab6cbca48
commit
1dd165a3bf
@ -335,7 +335,7 @@ static bool task_overlay_resolve_targets(struct overlay *ol,
|
||||
{
|
||||
struct overlay_desc *desc = (struct overlay_desc*)¤t->descs[i];
|
||||
const char *next = desc->next_index_name;
|
||||
ssize_t next_idx = (idx + 1) & size;
|
||||
ssize_t next_idx = (idx + 1) % size;
|
||||
|
||||
if (!string_is_empty(next))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user