From d9a224ef6c647a45cb6336008a428d0302f41e86 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 19 Jul 2024 15:36:59 +1000 Subject: [PATCH] GameList: Fix bogus entries on disc change due to disc set --- src/core/game_list.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/game_list.cpp b/src/core/game_list.cpp index c4f012da9..1b84f212e 100644 --- a/src/core/game_list.cpp +++ b/src/core/game_list.cpp @@ -1388,7 +1388,7 @@ GameList::GetMatchingEntriesForSerial(const std::span serials for (const Entry& entry : s_entries) { - if (entry.serial != serial) + if (entry.IsDiscSet() || entry.serial != serial) continue; if (!matching_entry) @@ -1409,7 +1409,7 @@ GameList::GetMatchingEntriesForSerial(const std::span serials // Have to add all matching files. for (const Entry& entry : s_entries) { - if (entry.serial != serial) + if (entry.IsDiscSet() || entry.serial != serial) continue; ret.emplace_back(Path::GetFileName(entry.path), &entry);