Merge pull request #4277 from EmptyChaos/hle-warn

HLE: Fix warnings
This commit is contained in:
shuffle2 2016-10-03 02:34:12 -07:00 committed by GitHub
commit d42db5aa7d
1 changed files with 3 additions and 4 deletions

View File

@ -185,13 +185,12 @@ bool IsEnabled(int flags)
u32 UnPatch(const std::string& patch_name) u32 UnPatch(const std::string& patch_name)
{ {
auto* patch = std::find_if(std::begin(OSPatches), std::end(OSPatches), [&](const SPatch& patch) { auto* patch = std::find_if(std::begin(OSPatches), std::end(OSPatches),
return patch_name == patch.m_szPatchName; [&](const SPatch& p) { return patch_name == p.m_szPatchName; });
});
if (patch == std::end(OSPatches)) if (patch == std::end(OSPatches))
return 0; return 0;
if (patch->type == HLE_TYPE_FIXED) if (patch->flags == HLE_TYPE_FIXED)
{ {
u32 patch_idx = static_cast<u32>(patch - OSPatches); u32 patch_idx = static_cast<u32>(patch - OSPatches);
u32 addr = 0; u32 addr = 0;