Fix startup problems stemming from SelectedGRP = "" ending up in eduke32.cfg

git-svn-id: https://svn.eduke32.com/eduke32@3705 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2013-04-22 16:30:39 +00:00
parent b7e3f8cbc9
commit 15014234ab

View file

@ -622,7 +622,11 @@ int32_t CONFIG_ReadSetup(void)
// #endif
if (g_grpNamePtr == NULL && g_usingAddon == 0)
{
SCRIPT_GetStringPtr(ud.config.scripthandle, "Setup","SelectedGRP",&g_grpNamePtr);
if (g_grpNamePtr && !Bstrlen(g_grpNamePtr))
g_grpNamePtr = dup_filename(G_DefaultGrpFile());
}
if (!NAM)
{