Set ol->resolve_pos to 0 beforehand

This commit is contained in:
twinaphex 2015-02-27 02:22:05 +01:00
parent d510a502e5
commit ec339c184d

View File

@ -583,8 +583,9 @@ bool input_overlay_load_overlays(input_overlay_t *ol)
if (!ol->overlays)
goto error;
ol->size = ol->config.overlays.size;
ol->pos = 0;
ol->size = ol->config.overlays.size;
ol->pos = 0;
ol->resolve_pos = 0;
for (i = 0; i < ol->size; i++)
{