Browse Source

settings: added regon/language warning bounds check

Colin Kinloch 3 năm trước cách đây
mục cha
commit
8594f287b8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/yuzu/configuration/configure_system.cpp

+ 1 - 1
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)