diff options
| author | Lioncash <mai.iam2048@gmail.com> | 2023-12-12 13:30:08 -0500 |
|---|---|---|
| committer | Lioncash <mai.iam2048@gmail.com> | 2023-12-12 13:30:08 -0500 |
| commit | 01d15994fe06f112ea84b8340e409c3825bc688f (patch) | |
| tree | 8ac4372ef51c4eaee002a1fea634e1d541b27c35 /Source/Core | |
| parent | e69ac2d43e2644591753c3f313dfded14d6d1718 (diff) | |
PatchEngine: Make use of std::erase
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/PatchEngine.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/Core/PatchEngine.cpp b/Source/Core/Core/PatchEngine.cpp index 456c2b008c..74fe5c7f7e 100644 --- a/Source/Core/Core/PatchEngine.cpp +++ b/Source/Core/Core/PatchEngine.cpp @@ -325,8 +325,7 @@ void AddMemoryPatch(std::size_t index) void RemoveMemoryPatch(std::size_t index) { std::lock_guard lock(s_on_frame_memory_mutex); - s_on_frame_memory.erase(std::remove(s_on_frame_memory.begin(), s_on_frame_memory.end(), index), - s_on_frame_memory.end()); + std::erase(s_on_frame_memory, index); } bool ApplyFramePatches() |
