Fix patch corruption using find_if instead of remove_if
This commit is contained in:
parent
a988b6ab34
commit
e10b3308c2
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue