mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Fix patch corruption using find_if instead of remove_if
This commit is contained in:
@ -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())
|
||||
|
Reference in New Issue
Block a user