fix(lang): fix crash when clicking on Settings when translation json are unreachable (#2265)
This commit is contained in:
parent
2efc2f6755
commit
f986d79ab4
@ -12,7 +12,7 @@ namespace big
|
|||||||
|
|
||||||
ImGui::SeparatorText("SETTINGS_LANGUAGES"_T.data());
|
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)
|
for (auto& i : language_entries)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user