diff options
| author | JoshuaMK <60854312+JoshuaMKW@users.noreply.github.com> | 2022-10-23 18:41:15 -0500 |
|---|---|---|
| committer | JoshuaMK <60854312+JoshuaMKW@users.noreply.github.com> | 2022-10-23 18:41:15 -0500 |
| commit | e10b3308c2b5b046f138f534477068d857e2b5c8 (patch) | |
| tree | fe87f7b42c592625f91051454d5d3ad1493194b7 /Source/Core/Common/Debug/MemoryPatches.cpp | |
| parent | a988b6ab34e5c368b693b6d724eb251ac63f65db (diff) | |
Fix patch corruption using find_if instead of remove_if
Diffstat (limited to 'Source/Core/Common/Debug/MemoryPatches.cpp')
| -rw-r--r-- | Source/Core/Common/Debug/MemoryPatches.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/Debug/MemoryPatches.cpp b/Source/Core/Common/Debug/MemoryPatches.cpp index cbe7258bed..cd44708e15 100644 --- a/Source/Core/Common/Debug/MemoryPatches.cpp +++ b/Source/Core/Common/Debug/MemoryPatches.cpp @@ -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()) |
