mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +00:00
- fixed comparison with previously loaded IWAD. There still was an unnecessary call to ExtractFileBase in there which mangled the name.
This commit is contained in:
parent
cafd1ca26e
commit
62cbddb7d2
1 changed files with 2 additions and 4 deletions
|
@ -656,11 +656,9 @@ int FIWadManager::IdentifyVersion (TArray<FString> &wadfiles, const char *iwad,
|
|||
{
|
||||
for (unsigned i = 0; i < picks.Size(); ++i)
|
||||
{
|
||||
FString basename = mIWadInfos[picks[i].mInfoIndex].Name;
|
||||
FString defname = ExtractFileBase(defaultiwad);
|
||||
if (stricmp(basename, defname) == 0)
|
||||
FString &basename = mIWadInfos[picks[i].mInfoIndex].Name;
|
||||
if (stricmp(basename, defaultiwad) == 0)
|
||||
{
|
||||
// Delete all but the wanted one.
|
||||
pick = i;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue