summaryrefslogtreecommitdiff
path: root/src/gamelog.cpp
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-05-30 11:51:21 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-06-13 10:26:58 +0200
commitbf500c39c9b6c7359204c5454aefa0dc7f51dae5 (patch)
tree41ce9700b545189ee990e4ce132b96a24d70d5e3 /src/gamelog.cpp
parente588923bff12e0c46aaab72fdca3e8b5cb211081 (diff)
downloadopenttd-bf500c39c9b6c7359204c5454aefa0dc7f51dae5.tar.xz
Codechange: make the name of SettingDesc a std::string
Diffstat (limited to 'src/gamelog.cpp')
-rw-r--r--src/gamelog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gamelog.cpp b/src/gamelog.cpp
index 1a4998e40..8965ea55f 100644
--- a/src/gamelog.cpp
+++ b/src/gamelog.cpp
@@ -483,14 +483,14 @@ void GamelogOldver()
* @param oldval old setting value
* @param newval new setting value
*/
-void GamelogSetting(const char *name, int32 oldval, int32 newval)
+void GamelogSetting(const std::string &name, int32 oldval, int32 newval)
{
assert(_gamelog_action_type == GLAT_SETTING);
LoggedChange *lc = GamelogChange(GLCT_SETTING);
if (lc == nullptr) return;
- lc->setting.name = stredup(name);
+ lc->setting.name = stredup(name.c_str());
lc->setting.oldval = oldval;
lc->setting.newval = newval;
}