summaryrefslogtreecommitdiff
path: root/src/script
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/script
parente588923bff12e0c46aaab72fdca3e8b5cb211081 (diff)
downloadopenttd-bf500c39c9b6c7359204c5454aefa0dc7f51dae5.tar.xz
Codechange: make the name of SettingDesc a std::string
Diffstat (limited to 'src/script')
-rw-r--r--src/script/api/script_gamesettings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/script_gamesettings.cpp b/src/script/api/script_gamesettings.cpp
index 458545226..35277e303 100644
--- a/src/script/api/script_gamesettings.cpp
+++ b/src/script/api/script_gamesettings.cpp
@@ -37,7 +37,7 @@
if ((sd->flags & SF_NO_NETWORK_SYNC) != 0) return false;
- return ScriptObject::DoCommand(0, 0, value, CMD_CHANGE_SETTING, sd->name);
+ return ScriptObject::DoCommand(0, 0, value, CMD_CHANGE_SETTING, sd->name.c_str());
}
/* static */ bool ScriptGameSettings::IsDisabledVehicleType(ScriptVehicle::VehicleType vehicle_type)