From 993d2ab173f0e262465b4420e5746bb55a2c9ff1 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Mon, 9 Jan 2023 17:24:41 +0100 Subject: [PATCH] PatchEngine: Use std::span in ApplyMemoryPatches(). --- Source/Core/Core/PatchEngine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/PatchEngine.cpp b/Source/Core/Core/PatchEngine.cpp index 67f2b4a3d9..a525e67261 100644 --- a/Source/Core/Core/PatchEngine.cpp +++ b/Source/Core/Core/PatchEngine.cpp @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -262,7 +263,7 @@ static void ApplyPatches(const std::vector& patches) } } -static void ApplyMemoryPatches(const std::vector& memory_patch_indices) +static void ApplyMemoryPatches(std::span memory_patch_indices) { std::lock_guard lock(s_on_frame_memory_mutex); for (std::size_t index : memory_patch_indices)