- add a NULL pointer check for the config to BaseFileSearch.

This commit is contained in:
Christoph Oelckers 2015-04-06 16:44:03 +02:00
parent dfda74ffe3
commit a013703e1c

View file

@ -1657,7 +1657,7 @@ static const char *BaseFileSearch (const char *file, const char *ext, bool lookf
return wad;
}
if (GameConfig->SetSection ("FileSearch.Directories"))
if (GameConfig != NULL && GameConfig->SetSection ("FileSearch.Directories"))
{
const char *key;
const char *value;