1
0
Fork 0

Fix #12418, 338def1b06: Filename extension taken from wrong string. (#12680)

pull/12682/head
Peter Nelson 2024-05-14 18:18:30 +01:00 committed by GitHub
parent 00c4b232b3
commit 460fab920c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -612,7 +612,7 @@ int openttd_main(std::span<char * const> arguments)
return ret;
}
std::string extension = std::filesystem::path(_file_to_saveload.name).extension().string();
std::string extension = std::filesystem::path(mgo.opt).extension().string();
auto [_, title] = FiosGetSavegameListCallback(SLO_LOAD, mgo.opt, extension);
_load_check_data.Clear();