From 169587b5b459b7c33c1529e9e1af08dab9400923 Mon Sep 17 00:00:00 2001 From: terminx Date: Thu, 7 Jun 2012 02:59:24 +0000 Subject: [PATCH] Fix MSVC build error caused by the use of a C99 feature (that should have been added to the compiler about 13 years ago) git-svn-id: https://svn.eduke32.com/eduke32@2743 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/astub.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index 2115ca044..525c14063 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -10352,16 +10352,18 @@ int32_t ExtInit(void) } } - const char *grpfile = G_GrpFile(); - - i = initgroupfile(grpfile); - - if (!NoAutoLoad) { - G_LoadGroupsInDir("autoload"); + const char *grpfile = G_GrpFile(); - if (i != -1) - G_DoAutoload(grpfile); + i = initgroupfile(grpfile); + + if (!NoAutoLoad) + { + G_LoadGroupsInDir("autoload"); + + if (i != -1) + G_DoAutoload(grpfile); + } } }