mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
Silence warnings in overlay.c
This commit is contained in:
parent
705c542911
commit
d82929f031
@ -535,15 +535,15 @@ static bool input_overlay_resolve_targets(struct overlay *ol,
|
||||
const char *next = current->descs[i].next_index_name;
|
||||
if (*next)
|
||||
{
|
||||
ssize_t index = input_overlay_find_index(ol, next, size);
|
||||
if (index < 0)
|
||||
ssize_t idx = input_overlay_find_index(ol, next, size);
|
||||
if (idx < 0)
|
||||
{
|
||||
RARCH_ERR("[Overlay]: Couldn't find overlay called: \"%s\".\n",
|
||||
next);
|
||||
return false;
|
||||
}
|
||||
|
||||
current->descs[i].next_index = index;
|
||||
current->descs[i].next_index = idx;
|
||||
}
|
||||
else
|
||||
current->descs[i].next_index = (index + 1) % size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user