Silence warnings in overlay.c

This commit is contained in:
Twinaphex 2014-10-14 22:52:13 +02:00
parent 705c542911
commit d82929f031

View File

@ -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;