mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +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
|
@ -597,6 +597,8 @@ int FIWadManager::IdentifyVersion (TArray<FString> &wadfiles, const char *iwad,
|
||||||
{
|
{
|
||||||
bool picked = false;
|
bool picked = false;
|
||||||
for (int j = 0; j < (int)mFoundWads.Size(); j++)
|
for (int j = 0; j < (int)mFoundWads.Size(); j++)
|
||||||
|
{
|
||||||
|
if (mFoundWads[j].mInfoIndex >= 0)
|
||||||
{
|
{
|
||||||
if (mIWadInfos[mFoundWads[j].mInfoIndex].Name.Compare(mOrderNames[i]) == 0)
|
if (mIWadInfos[mFoundWads[j].mInfoIndex].Name.Compare(mOrderNames[i]) == 0)
|
||||||
{
|
{
|
||||||
|
@ -609,6 +611,7 @@ int FIWadManager::IdentifyVersion (TArray<FString> &wadfiles, const char *iwad,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// What's left is IWADs with their own IWADINFO. Copy those in order of discovery.
|
// What's left is IWADs with their own IWADINFO. Copy those in order of discovery.
|
||||||
for (auto &entry : mFoundWads)
|
for (auto &entry : mFoundWads)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue