mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-17 01:12:39 +01:00
Fix: File/directory titles not updated if language is changed. (#14542)
This commit is contained in:
@@ -569,7 +569,7 @@ static bool ConListFiles(std::span<std::string_view> argv)
|
||||
|
||||
_console_file_list_savegame.ValidateFileList(true);
|
||||
for (uint i = 0; i < _console_file_list_savegame.size(); i++) {
|
||||
IConsolePrint(CC_DEFAULT, "{}) {}", i, _console_file_list_savegame[i].title);
|
||||
IConsolePrint(CC_DEFAULT, "{}) {}", i, _console_file_list_savegame[i].title.GetDecodedString());
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -585,7 +585,7 @@ static bool ConListScenarios(std::span<std::string_view> argv)
|
||||
|
||||
_console_file_list_scenario.ValidateFileList(true);
|
||||
for (uint i = 0; i < _console_file_list_scenario.size(); i++) {
|
||||
IConsolePrint(CC_DEFAULT, "{}) {}", i, _console_file_list_scenario[i].title);
|
||||
IConsolePrint(CC_DEFAULT, "{}) {}", i, _console_file_list_scenario[i].title.GetDecodedString());
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -601,7 +601,7 @@ static bool ConListHeightmaps(std::span<std::string_view> argv)
|
||||
|
||||
_console_file_list_heightmap.ValidateFileList(true);
|
||||
for (uint i = 0; i < _console_file_list_heightmap.size(); i++) {
|
||||
IConsolePrint(CC_DEFAULT, "{}) {}", i, _console_file_list_heightmap[i].title);
|
||||
IConsolePrint(CC_DEFAULT, "{}) {}", i, _console_file_list_heightmap[i].title.GetDecodedString());
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user