Skip to content

Commit

Permalink
- fixed: Do not attempt to look up negative IWAD indices.
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Sep 13, 2017
1 parent 765646e commit ae4dad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d_iwad.cpp
Expand Up @@ -581,7 +581,7 @@ int FIWadManager::IdentifyVersion (TArray<FString> &wadfiles, const char *iwad,
// scan the list of found IWADs for a matching one for the current PWAD.
for (auto &found : mFoundWads)
{
if (mIWadInfos[found.mInfoIndex].IWadname.CompareNoCase(iwad) == 0 && mIWadInfos[found.mInfoIndex].prio > pickedprio)
if (found.mInfoIndex >= 0 && mIWadInfos[found.mInfoIndex].IWadname.CompareNoCase(iwad) == 0 && mIWadInfos[found.mInfoIndex].prio > pickedprio)
{
picks.Clear();
picks.Push(found);
Expand Down

0 comments on commit ae4dad6

Please sign in to comment.