- fixed: Don't try to load autoload sections for empty section names.

This commit is contained in:
Christoph Oelckers 2015-04-05 22:07:24 +02:00
parent 0ae74b844d
commit a91997d12c

View file

@ -2031,7 +2031,7 @@ static void AddAutoloadFiles(const char *group, const char *autoname)
D_AddConfigWads (allwads, file);
// Add group-specific wads
if (group != NULL)
if (group != NULL && group[0] != 0)
{
file = group;
file += ".Autoload";
@ -2039,7 +2039,7 @@ static void AddAutoloadFiles(const char *group, const char *autoname)
}
// Add IWAD-specific wads
if (autoname != NULL)
if (autoname != NULL && autoname[0] != 0)
{
file = autoname;
file += ".Autoload";