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/settings.cpp | |
parent | f313a539a54efe09850bcab0680d281e3cc54444 (diff) | |
download | openttd-6bca9e090dc6637fd7b6ed6a5a37d65f151849e9.tar.xz |
Codechange: add SetDParamStr that accepts std::string&
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index c0b0dd8ed..855bedd18 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1631,7 +1631,7 @@ static GRFConfig *GRFLoadConfig(IniFile *ini, const char *grpname, bool is_stati SetDParam(1, STR_CONFIG_ERROR_INVALID_GRF_UNKNOWN); } - SetDParamStr(0, StrEmpty(filename) ? item->name.c_str() : filename); + SetDParamStr(0, StrEmpty(filename) ? item->name : filename); ShowErrorMessage(STR_CONFIG_ERROR, STR_CONFIG_ERROR_INVALID_GRF, WL_CRITICAL); delete c; continue; |