diff options
author | rubidium42 <rubidium@openttd.org> | 2021-04-27 20:58:17 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-06 21:45:36 +0200 |
commit | 6bca9e090dc6637fd7b6ed6a5a37d65f151849e9 (patch) | |
tree | 062edb9db599f8e3244f6ed4acf3ad85f39912ae /src/fios.cpp | |
parent | f313a539a54efe09850bcab0680d281e3cc54444 (diff) | |
download | openttd-6bca9e090dc6637fd7b6ed6a5a37d65f151849e9.tar.xz |
Codechange: add SetDParamStr that accepts std::string&
Diffstat (limited to 'src/fios.cpp')
-rw-r--r-- | src/fios.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fios.cpp b/src/fios.cpp index 3b11bcbe0..c56e505fa 100644 --- a/src/fios.cpp +++ b/src/fios.cpp @@ -392,7 +392,7 @@ static void FiosGetFileList(SaveLoadOperation fop, fios_getlist_callback_proc *c fios->mtime = 0; strecpy(fios->name, d_name, lastof(fios->name)); std::string dirname = std::string(d_name) + PATHSEP; - SetDParamStr(0, dirname.c_str()); + SetDParamStr(0, dirname); GetString(fios->title, STR_SAVELOAD_DIRECTORY, lastof(fios->title)); str_validate(fios->title, lastof(fios->title)); } |