Fixed detection of the first entry from internal IWADINFO

https://forum.zdoom.org/viewtopic.php?t=58333
This commit is contained in:
alexey.lysiuk 2017-11-18 14:35:45 +02:00
parent 0dcb1fe74c
commit 80b47cafb4
1 changed files with 1 additions and 1 deletions

View File

@ -583,7 +583,7 @@ int FIWadManager::IdentifyVersion (TArray<FString> &wadfiles, const char *iwad,
// We have a -iwad parameter. Pick the first usable IWAD we found through that. // We have a -iwad parameter. Pick the first usable IWAD we found through that.
for (unsigned i = numFoundWads; i < mFoundWads.Size(); i++) for (unsigned i = numFoundWads; i < mFoundWads.Size(); i++)
{ {
if (mFoundWads[i].mInfoIndex > 0) if (mFoundWads[i].mInfoIndex >= 0)
{ {
picks.Push(mFoundWads[i]); picks.Push(mFoundWads[i]);
break; break;