diff options
| author | EmptyChaos <EmptyChaos@users.noreply.github.com> | 2016-10-03 07:49:08 +0000 |
|---|---|---|
| committer | EmptyChaos <EmptyChaos@users.noreply.github.com> | 2016-10-03 18:49:08 +1100 |
| commit | 76558c4d87b843ad9bea1dc738b437dfd62965cd (patch) | |
| tree | 5dc8ca849b2b03355367e0ab9e0b78015df12dfc | |
| parent | d139659ea2a12fddb12b9fd9ead7f16bae24dea0 (diff) | |
HLE: Fix warnings
| -rw-r--r-- | Source/Core/Core/HLE/HLE.cpp | 7 |
1 files 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<u32>(patch - OSPatches); u32 addr = 0; |
