- 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:
Christoph Oelckers 2017-08-20 09:27:32 +02:00
parent cafd1ca26e
commit 62cbddb7d2

View file

@ -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;
}