diff --git a/Utilities/bin_patch.cpp b/Utilities/bin_patch.cpp index 113ce1ccc4..340f3271f3 100644 --- a/Utilities/bin_patch.cpp +++ b/Utilities/bin_patch.cpp @@ -568,28 +568,28 @@ std::size_t patch_engine::apply_patch(const std::string& name, u8* dst, u32 file { std::string found_serial; - if (serials.find(patch_key::all) != serials.end()) - { - found_serial = patch_key::all; - } - else if (serials.find(serial) != serials.end()) + if (serials.find(serial) != serials.end()) { found_serial = serial; } + else if (serials.find(patch_key::all) != serials.end()) + { + found_serial = patch_key::all; + } if (!found_serial.empty()) { const auto& app_versions = serials.at(found_serial); std::string found_app_version; - if (app_versions.find(patch_key::all) != app_versions.end()) - { - found_app_version = patch_key::all; - } - else if (app_versions.find(app_version) != app_versions.end()) + if (app_versions.find(app_version) != app_versions.end()) { found_app_version = app_version; } + else if (app_versions.find(patch_key::all) != app_versions.end()) + { + found_app_version = patch_key::all; + } if (!found_app_version.empty() && app_versions.at(found_app_version)) {