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 6a56113e7c
commit 81db20d2c8

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)
{