summaryrefslogtreecommitdiff
path: root/src/script/api
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-04-28 17:38:02 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-13 23:13:17 +0200
commit0f062b38826efbfa3b250da3943a6927346bc18c (patch)
treed0a028ac976b69b6d360979fc0c869f500543e60 /src/script/api
parenta032714dc4ca2b620af1ba9a444840d46ec9326f (diff)
downloadopenttd-0f062b38826efbfa3b250da3943a6927346bc18c.tar.xz
Codechange: clean up C-string support from settings
Diffstat (limited to 'src/script/api')
-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 bdaeb6c93..2717d4ddd 100644
--- a/src/script/api/script_gamesettings.cpp
+++ b/src/script/api/script_gamesettings.cpp
@@ -19,7 +19,7 @@
{
uint i;
const SettingDesc *sd = GetSettingFromName(setting, &i);
- return sd != nullptr && sd->desc.cmd != SDT_STRING;
+ return sd != nullptr && sd->desc.cmd != SDT_STDSTRING;
}
/* static */ int32 ScriptGameSettings::GetValue(const char *setting)