From bb4977cc9f4ab7e7f6e9eae9c3845e9f901d5706 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sat, 15 Aug 2015 21:28:17 +0000 Subject: [PATCH] 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 --- polymer/eduke32/source/startwin.game.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polymer/eduke32/source/startwin.game.c b/polymer/eduke32/source/startwin.game.c index f1043b2bd..3af09045b 100644 --- a/polymer/eduke32/source/startwin.game.c +++ b/polymer/eduke32/source/startwin.game.c @@ -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);