- fix lump name setup.

This commit is contained in:
Christoph Oelckers 2023-08-22 19:11:08 +02:00
commit 8e250abe0a
2 changed files with 18 additions and 19 deletions

View file

@ -608,7 +608,7 @@ int FIWadManager::IdentifyVersion (std::vector<std::string>&wadfiles, const char
// Check for symbolic links leading to non-existent files and for files that are unreadable.
for (unsigned int i = 0; i < mFoundWads.Size(); i++)
{
if (!FileExists(mFoundWads[i].mFullPath) || !FileReadable(mFoundWads[i].mFullPath)) mFoundWads.Delete(i);
if (!FileExists(mFoundWads[i].mFullPath) || !FileReadable(mFoundWads[i].mFullPath)) mFoundWads.Delete(i--);
}
// Now check if what got collected actually is an IWAD.