diff --git a/Source/Core/Core/WC24PatchEngine.cpp b/Source/Core/Core/WC24PatchEngine.cpp index b88ca5cb6a..1fd7462b77 100644 --- a/Source/Core/Core/WC24PatchEngine.cpp +++ b/Source/Core/Core/WC24PatchEngine.cpp @@ -116,8 +116,8 @@ void Reload() std::optional GetNetworkPatch(const std::string& source, IsKD is_kd) { const auto patch = - std::find_if(s_patches.begin(), s_patches.end(), [&source, &is_kd](NetworkPatch& patch) { - return patch.source == source && patch.is_kd == is_kd && patch.enabled; + std::find_if(s_patches.begin(), s_patches.end(), [&source, &is_kd](const NetworkPatch& p) { + return p.source == source && p.is_kd == is_kd && p.enabled; }); if (patch == s_patches.end()) return std::nullopt;