From a00da236541fddc6f9c96ebfe410e681e3180918 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Mon, 19 Oct 2020 20:46:22 +1100 Subject: [PATCH] - 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 --- source/core/searchpaths.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/searchpaths.cpp b/source/core/searchpaths.cpp index 5579a6fad..351dffb69 100644 --- a/source/core/searchpaths.cpp +++ b/source/core/searchpaths.cpp @@ -858,7 +858,7 @@ TArray 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); } }