From 76558c4d87b843ad9bea1dc738b437dfd62965cd Mon Sep 17 00:00:00 2001 From: EmptyChaos Date: Mon, 3 Oct 2016 07:49:08 +0000 Subject: [PATCH] HLE: Fix warnings --- Source/Core/Core/HLE/HLE.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/HLE/HLE.cpp b/Source/Core/Core/HLE/HLE.cpp index 6064e554e8..1e1fd96d03 100644 --- a/Source/Core/Core/HLE/HLE.cpp +++ b/Source/Core/Core/HLE/HLE.cpp @@ -185,13 +185,12 @@ bool IsEnabled(int flags) u32 UnPatch(const std::string& patch_name) { - auto* patch = std::find_if(std::begin(OSPatches), std::end(OSPatches), [&](const SPatch& patch) { - return patch_name == patch.m_szPatchName; - }); + auto* patch = std::find_if(std::begin(OSPatches), std::end(OSPatches), + [&](const SPatch& p) { return patch_name == p.m_szPatchName; }); if (patch == std::end(OSPatches)) return 0; - if (patch->type == HLE_TYPE_FIXED) + if (patch->flags == HLE_TYPE_FIXED) { u32 patch_idx = static_cast(patch - OSPatches); u32 addr = 0;