Skip to content

Commit

Permalink
Fixed detection of the first entry from internal IWADINFO
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Nov 18, 2017
1 parent 0dcb1fe commit 80b47ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d_iwad.cpp
Expand Up @@ -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.
for (unsigned i = numFoundWads; i < mFoundWads.Size(); i++)
{
if (mFoundWads[i].mInfoIndex > 0)
if (mFoundWads[i].mInfoIndex >= 0)
{
picks.Push(mFoundWads[i]);
break;
Expand Down

0 comments on commit 80b47ca

Please sign in to comment.