mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 12:04:56 +00:00
PatchEngine: Make use of std::erase
This commit is contained in:
parent
e69ac2d43e
commit
01d15994fe
1 changed files with 1 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue