GUI: Fix file select indexing

This commit is contained in:
Jeffrey Pfau 2015-08-31 20:43:31 -07:00
parent 33e3fb9a45
commit 2a37d38a92
1 changed files with 2 additions and 0 deletions

View File

@ -143,6 +143,7 @@ bool GUISelectFile(struct GUIParams* params, char* outPath, size_t outLen, bool
}
}
params->fileIndex = 0;
menu.index = 0;
}
if (reason == GUI_MENU_EXIT_BACK) {
if (strncmp(params->currentPath, params->basePath, PATH_MAX) == 0) {
@ -153,6 +154,7 @@ bool GUISelectFile(struct GUIParams* params, char* outPath, size_t outLen, bool
break;
}
params->fileIndex = 0;
menu.index = 0;
}
}