ui: Fixed language list crashing
This commit is contained in:
parent
59c01feaea
commit
131699d309
@ -82,7 +82,9 @@ namespace hex::plugin::builtin {
|
|||||||
}();
|
}();
|
||||||
|
|
||||||
static auto languageNames = [&]() {
|
static auto languageNames = [&]() {
|
||||||
std::vector<const char*> result(languages.size());
|
std::vector<const char*> result;
|
||||||
|
result.reserve(languages.size());
|
||||||
|
|
||||||
for (auto &[languageCode, languageName] : languages)
|
for (auto &[languageCode, languageName] : languages)
|
||||||
result.push_back(languageName.c_str());
|
result.push_back(languageName.c_str());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user