Commit 9e4e786a authored by nanahira's avatar nanahira

typo

parent a3c0eabd
...@@ -1015,10 +1015,10 @@ void Game::RefreshSingleplay() { ...@@ -1015,10 +1015,10 @@ void Game::RefreshSingleplay() {
void Game::RefreshLocales() { void Game::RefreshLocales() {
cbLocale->clear(); cbLocale->clear();
cbLocale->addItem(L"default"); cbLocale->addItem(L"default");
lstSinglePlayList->clear(); cbLocale->clear();
FileSystem::TraversalDir(L"./locales", [this](const wchar_t* name, bool isdir) { FileSystem::TraversalDir(L"./locales", [this](const wchar_t* name, bool isdir) {
if(isdir && wcscmp(name, L".") && wcscmp(name, L"..")) if(isdir && wcscmp(name, L".") && wcscmp(name, L".."))
lstSinglePlayList->addItem(name); cbLocale->addItem(name);
}); });
for(size_t i = 0; i < cbLocale->getItemCount(); ++i) { for(size_t i = 0; i < cbLocale->getItemCount(); ++i) {
if(!wcscmp(cbLocale->getItem(i), gameConf.locale)) { if(!wcscmp(cbLocale->getItem(i), gameConf.locale)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment