diff options
| author | JMC47 <JMC4789@gmail.com> | 2025-03-23 15:56:13 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-23 15:56:13 -0400 |
| commit | ad3650abfcae6432338ba976123958ee67a4106c (patch) | |
| tree | 23def284c9a42648ea0779f94903ba43903aa353 /Source/Core/Common/Debug/MemoryPatches.cpp | |
| parent | 1515cf6ccdd1ba206c8e0eaabad07de28a4f5939 (diff) | |
| parent | e4efe011d71b668537bc551996848e911de079ab (diff) | |
Merge pull request #13093 from mitaclaw/ranges-modernization-4-projection
Ranges Algorithms Modernization - Projection
Diffstat (limited to 'Source/Core/Common/Debug/MemoryPatches.cpp')
| -rw-r--r-- | Source/Core/Common/Debug/MemoryPatches.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/Common/Debug/MemoryPatches.cpp b/Source/Core/Common/Debug/MemoryPatches.cpp index 3dee4d0e03..0becba1dde 100644 --- a/Source/Core/Common/Debug/MemoryPatches.cpp +++ b/Source/Core/Common/Debug/MemoryPatches.cpp @@ -63,8 +63,7 @@ const std::vector<MemoryPatch>& MemoryPatches::GetPatches() const void MemoryPatches::UnsetPatch(const Core::CPUThreadGuard& guard, u32 address) { - const auto it = std::find_if(m_patches.begin(), m_patches.end(), - [address](const auto& patch) { return patch.address == address; }); + const auto it = std::ranges::find(m_patches, address, &MemoryPatch::address); if (it == m_patches.end()) return; |
