Fix patch corruption using find_if instead of remove_if

This commit is contained in:
JoshuaMK 2022-10-23 18:41:15 -05:00
parent a988b6ab34
commit e10b3308c2
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ const std::vector<MemoryPatch>& MemoryPatches::GetPatches() const
void MemoryPatches::UnsetPatch(u32 address)
{
const auto it = std::remove_if(m_patches.begin(), m_patches.end(),
const auto it = std::find_if(m_patches.begin(), m_patches.end(),
[address](const auto& patch) { return patch.address == address; });
if (it == m_patches.end())