diff options
| author | 2019-05-23 02:37:13 -0700 | |
|---|---|---|
| committer | 2019-05-23 02:37:13 -0700 | |
| commit | 016f2eab730ef9eb5035cd9217e6a8b0ace696ae (patch) | |
| tree | f88e8675a7da24122f03e566762985345e02100e /src | |
| parent | fix introduced clang-format errors (diff) | |
| download | yuzu-016f2eab730ef9eb5035cd9217e6a8b0ace696ae.tar.gz yuzu-016f2eab730ef9eb5035cd9217e6a8b0ace696ae.tar.xz yuzu-016f2eab730ef9eb5035cd9217e6a8b0ace696ae.zip | |
Fix bitmask logic inversion
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/ns/ns.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/service/ns/ns.cpp b/src/core/hle/service/ns/ns.cpp index 8638390d6..ce88a2941 100644 --- a/src/core/hle/service/ns/ns.cpp +++ b/src/core/hle/service/ns/ns.cpp | |||
| @@ -344,8 +344,7 @@ ResultVal<u8> IApplicationManagerInterface::GetApplicationDesiredLanguage( | |||
| 344 | // Try to find a valid language. | 344 | // Try to find a valid language. |
| 345 | for (const auto lang : *priority_list) { | 345 | for (const auto lang : *priority_list) { |
| 346 | const auto supported_flag = GetSupportedLanguageFlag(lang); | 346 | const auto supported_flag = GetSupportedLanguageFlag(lang); |
| 347 | if (supported_languages == 0 || | 347 | if (supported_languages == 0 || (supported_languages & supported_flag) == supported_flag) { |
| 348 | (supported_languages & supported_flag) == supported_languages) { | ||
| 349 | return MakeResult(static_cast<u8>(lang)); | 348 | return MakeResult(static_cast<u8>(lang)); |
| 350 | } | 349 | } |
| 351 | } | 350 | } |