mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-17 23:07:26 +08:00
fix(lang): fix crash when clicking on Settings when translation json are unreachable (#2265)
This commit is contained in:
parent
6a56113e7c
commit
81db20d2c8
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user