CDSubChannelReplacement: Clear map on reload

Fixes one PBP disc's SBI from leaking into others.
This commit is contained in:
Stenzek
2024-01-01 14:46:56 +10:00
parent cc84952fdc
commit cf760bbe42
2 changed files with 10 additions and 2 deletions

View File

@ -61,6 +61,8 @@ bool CDSubChannelReplacement::LoadSBI(const std::string& path)
return true;
}
m_replacement_subq.clear();
SBIFileEntry entry;
while (std::fread(&entry, sizeof(entry), 1, fp.get()) == 1)
{
@ -101,6 +103,8 @@ bool CDSubChannelReplacement::LoadLSD(const std::string& path)
if (!fp)
return false;
m_replacement_subq.clear();
LSDFileEntry entry;
while (std::fread(&entry, sizeof(entry), 1, fp.get()) == 1)
{