Fixed name comparison in checking of IWADINFO lump

https://forum.zdoom.org/viewtopic.php?t=57835
This commit is contained in:
alexey.lysiuk 2017-09-16 17:02:08 +03:00
parent afab50b489
commit 1eda8aba6b

View file

@ -335,7 +335,7 @@ int FIWadManager::CheckIWADInfo(const char *fn)
delete resfile; delete resfile;
for (auto &wadinf : mIWadInfos) for (auto &wadinf : mIWadInfos)
{ {
if (wadinf.Name.Compare(result.Name)) if (wadinf.Name == result.Name)
{ {
return -1; // do not show the same one twice. return -1; // do not show the same one twice.
} }