Skip to content

Commit

Permalink
PatchEngine: Use std::span in ApplyMemoryPatches().
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiralCurtiss committed Jan 9, 2023
1 parent 31bf9d0 commit 993d2ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/Core/PatchEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <map>
#include <mutex>
#include <optional>
#include <span>
#include <string>
#include <vector>

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 993d2ab

Please sign in to comment.