- In SetupGame(), test userConfig.DefaultCon before userConfig.gamegrp so addons work properly.

This commit is contained in:
Mitchell Richters 2022-12-10 10:48:34 +11:00
parent 25460e8e98
commit dc41057984

View file

@ -722,6 +722,24 @@ static TArray<GrpEntry> SetupGame()
}
foundit:
// If the user has specified a script, let's see if we know it.
//
if (groupno == -1 && userConfig.DefaultCon.Len())
{
FString DefaultConlower = userConfig.DefaultCon.MakeLower();
int g = 0;
for (auto& grp : groups)
{
if (grp.FileInfo.scriptname.MakeLower() == DefaultConlower)
{
groupno = g;
break;
}
g++;
}
}
// If the user has specified a file name, let's see if we know it.
//
if (groupno == -1 && userConfig.gamegrp.Len())