Codechange: use std::string_view for FS2OTTD and OTTD2FS

This commit is contained in:
Rubidium
2025-04-29 21:00:06 +02:00
committed by rubidium42
parent ef71ce0a9d
commit f4ad614285
10 changed files with 37 additions and 36 deletions

View File

@@ -386,7 +386,7 @@ void ReconsiderGameScriptLanguage()
{
if (_current_gamestrings_data == nullptr) return;
std::string language = FS2OTTD(_current_language->file.stem());
std::string language = FS2OTTD(_current_language->file.stem().native());
for (auto &p : _current_gamestrings_data->compiled_strings) {
if (p.language == language) {
_current_gamestrings_data->cur_language = &p;