mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-26 15:25:41 -04:00
GameList: Fix bogus entries on disc change due to disc set
This commit is contained in:
parent
6a920b268e
commit
d9a224ef6c
@ -1388,7 +1388,7 @@ GameList::GetMatchingEntriesForSerial(const std::span<const std::string> 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<const std::string> 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user