- searchpaths.cpp: When filtering duplicate games to delete, if CRC matches and CRC == 0, test whether name matches as well.

* Cryptic Passage for Blood has no CRC and therefore was failing this catch.
* Fixes #130
This commit is contained in:
Mitchell Richters 2020-10-19 20:46:22 +11:00
parent 66c097b3b8
commit a00da23654

View file

@ -858,7 +858,7 @@ TArray<GrpEntry> GrpScan()
{
for (unsigned j = foundGames.Size() - 1; j > i; j--)
{
if (foundGames[i].FileInfo.CRC == foundGames[j].FileInfo.CRC && foundGames[j].FileInfo.CRC != 0)
if (foundGames[i].FileInfo.CRC == foundGames[j].FileInfo.CRC && (foundGames[j].FileInfo.CRC != 0 || foundGames[i].FileInfo.name == foundGames[j].FileInfo.name))
foundGames.Delete(j);
}
}