Fix the Custom game content directory startup window option loading the folder alphabetically previous to the one selected when the "autoload" folder is present.

git-svn-id: https://svn.eduke32.com/eduke32@5330 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2015-08-15 21:28:17 +00:00
parent 4360b89fb5
commit bb4977cc9f

View file

@ -125,7 +125,10 @@ static void PopulateForm(int32_t pgs)
for (dirs=finddirs,i=1; dirs != NULL; dirs=dirs->next)
{
if (Bstrcasecmp(dirs->name, "autoload") == 0)
{
i++;
continue;
}
(void)ComboBox_AddString(hwnd, dirs->name);
(void)ComboBox_SetItemData(hwnd, i, i);