mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
- add a NULL pointer check for the config to BaseFileSearch.
This commit is contained in:
parent
dfda74ffe3
commit
a013703e1c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue