- -addon 0 seems to be a valid parameter...

This commit is contained in:
Christoph Oelckers 2020-02-09 09:48:55 +01:00
parent 598ce8a2ef
commit 9310c25a7b
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ void UserConfig::ProcessOptions()
{
auto val = strtol(v, nullptr, 0);
static const char* const addons[] = { "DUKE3D.GRP", "DUKEDC.GRP", "NWINTER.GRP", "VACATION.GRP" };
if (val > 0 && val < 4) gamegrp = addons[val];
if (val >= 0 && val < 4) gamegrp = addons[val];
else initprintf("%s: Unknown Addon\n", v);
}
else if (Args->CheckParm("-nam"))