PatchEngine: Use std::span in ApplyMemoryPatches().

This commit is contained in:
Admiral H. Curtiss 2023-01-09 17:24:41 +01:00
parent 31bf9d0019
commit 993d2ab173
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@
#include <map>
#include <mutex>
#include <optional>
#include <span>
#include <string>
#include <vector>
@ -262,7 +263,7 @@ static void ApplyPatches(const std::vector<Patch>& patches)
}
}
static void ApplyMemoryPatches(const std::vector<std::size_t>& memory_patch_indices)
static void ApplyMemoryPatches(std::span<const std::size_t> memory_patch_indices)
{
std::lock_guard lock(s_on_frame_memory_mutex);
for (std::size_t index : memory_patch_indices)