1
0
mirror of synced 2024-11-28 09:30:51 +01:00

ui: Fixed language list crashing

This commit is contained in:
WerWolv 2021-09-20 12:44:12 +02:00
parent 59c01feaea
commit 131699d309

View File

@ -82,7 +82,9 @@ namespace hex::plugin::builtin {
}();
static auto languageNames = [&]() {
std::vector<const char*> result(languages.size());
std::vector<const char*> result;
result.reserve(languages.size());
for (auto &[languageCode, languageName] : languages)
result.push_back(languageName.c_str());