- allow forks to set OPTIONALWAD to (null) to disable searching for it.

This commit is contained in:
Rachael Alexanderson 2024-12-05 04:09:51 -05:00
commit fb660fa3c1
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0
2 changed files with 2 additions and 1 deletions

View file

@ -824,7 +824,7 @@ int FIWadManager::IdentifyVersion (std::vector<std::string>&wadfiles, const char
// [SP] Load non-free assets if available. This must be done before the IWAD.
int iwadnum = 1;
if (D_AddFile(wadfiles, optional_wad, true, -1, GameConfig))
if (optional_wad && D_AddFile(wadfiles, optional_wad, true, -1, GameConfig))
{
iwadnum++;
}