mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-31 13:00:59 +00:00
- fixed missing check for bad IWADs.
This commit is contained in:
parent
2e670ae71d
commit
ca47b138be
1 changed files with 8 additions and 5 deletions
|
@ -598,14 +598,17 @@ int FIWadManager::IdentifyVersion (TArray<FString> &wadfiles, const char *iwad,
|
|||
bool picked = false;
|
||||
for (int j = 0; j < (int)mFoundWads.Size(); j++)
|
||||
{
|
||||
if (mIWadInfos[mFoundWads[j].mInfoIndex].Name.Compare(mOrderNames[i]) == 0)
|
||||
if (mFoundWads[j].mInfoIndex >= 0)
|
||||
{
|
||||
if (!picked)
|
||||
if (mIWadInfos[mFoundWads[j].mInfoIndex].Name.Compare(mOrderNames[i]) == 0)
|
||||
{
|
||||
picked = true;
|
||||
picks.Push(mFoundWads[j]);
|
||||
if (!picked)
|
||||
{
|
||||
picked = true;
|
||||
picks.Push(mFoundWads[j]);
|
||||
}
|
||||
mFoundWads.Delete(j--);
|
||||
}
|
||||
mFoundWads.Delete(j--);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue