mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 21:11:39 +00:00
- fixed: Do not attempt to look up negative IWAD indices.
This commit is contained in:
parent
765646ee1c
commit
ae4dad64f7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue