ui: Fixed language list crashing

This commit is contained in:
WerWolv 2021-09-20 12:44:12 +02:00
parent 59c01feaea
commit 131699d309
1 changed files with 3 additions and 1 deletions

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());