PatchEngine: Make use of std::erase
This commit is contained in:
1 parent
e69ac2d43e
commit
01d15994fe
1 file changed
+1
-2
@@ -325,8 +325,7 @@ void AddMemoryPatch(std::size_t index)
|
|||||||
void RemoveMemoryPatch(std::size_t index)
|
void RemoveMemoryPatch(std::size_t index)
|
||||||
{
|
{
|
||||||
std::lock_guard lock(s_on_frame_memory_mutex);
|
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),
|
std::erase(s_on_frame_memory, index);
|
||||||
s_on_frame_memory.end());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ApplyFramePatches()
|
bool ApplyFramePatches()
|
||||||
|
|||||||
Reference in new issue
Block a user