From 8594f287b83006a0aa11dfadbf174e5320873ab3 Mon Sep 17 00:00:00 2001 From: Colin Kinloch Date: Thu, 29 Dec 2022 14:25:22 +0000 Subject: [PATCH] settings: added regon/language warning bounds check --- src/yuzu/configuration/configure_system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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)