diff options
| author | Colin Kinloch <colin.kinloch@collabora.com> | 2022-12-29 14:25:22 +0000 |
|---|---|---|
| committer | Colin Kinloch <colin.kinloch@collabora.com> | 2022-12-29 15:55:24 +0000 |
| commit | e7feff53e7a511ccca07cbef0ae911da8ca8c5a3 (patch) | |
| tree | 1a50c92d8bdca6eb7a102bb387a42202fa40ba0e /src/yuzu | |
| parent | 5de4ef224e5d5c47376d95489f10cbf2d3c4ae12 (diff) | |
settings: added regon/language warning bounds check
Diffstat (limited to 'src/yuzu')
| -rw-r--r-- | src/yuzu/configuration/configure_system.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/configuration/configure_system.cpp b/src/yuzu/configuration/configure_system.cpp index 37a98bea19..13bbc4ad9b 100644 --- a/src/yuzu/configuration/configure_system.cpp +++ b/src/yuzu/configuration/configure_system.cpp @@ -25,7 +25,7 @@ constexpr std::array<u32, 7> LOCALE_BLOCKLIST{ }; static bool IsValidLocale(u32 region_index, u32 language_index) { - return ((LOCALE_BLOCKLIST[region_index] >> language_index) & 1) == 0; + return ((LOCALE_BLOCKLIST.at(region_index) >> language_index) & 1) == 0; } ConfigureSystem::ConfigureSystem(Core::System& system_, QWidget* parent) |
