fix(lang): fix crash when clicking on Settings when translation json are unreachable (#2265)

This commit is contained in:
Quentin 2023-10-13 00:12:49 +02:00 committed by GitHub
parent 2efc2f6755
commit f986d79ab4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ namespace big
ImGui::SeparatorText("SETTINGS_LANGUAGES"_T.data());
if (ImGui::BeginCombo("Menu Language", language_entries.at(current_pack).name.c_str()))
if (language_entries.contains(current_pack) && ImGui::BeginCombo("Menu Language", language_entries.at(current_pack).name.c_str()))
{
for (auto& i : language_entries)
{