summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-24 19:53:35 +0000
committerrubidium <rubidium@openttd.org>2013-11-24 19:53:35 +0000
commit0460b78515eb4e703e75559b1281008edaae7199 (patch)
tree075e3dedb57ec9f9ac5b1262891c4021a9e8b6a9 /src/script
parent168fa4129d9d3b1296be8684f0f2f9c146014456 (diff)
downloadopenttd-0460b78515eb4e703e75559b1281008edaae7199.tar.xz
(svn r26093) -Fix (r26092): compilation error
Diffstat (limited to 'src/script')
-rw-r--r--src/script/api/script_object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/script_object.cpp b/src/script/api/script_object.cpp
index d9aefca3c..679efd1a7 100644
--- a/src/script/api/script_object.cpp
+++ b/src/script/api/script_object.cpp
@@ -290,7 +290,7 @@ ScriptObject::ActiveInstance::~ActiveInstance()
if (!StrEmpty(text) && (GetCommandFlags(cmd) & CMD_STR_CTRL) == 0) {
/* The string must be valid, i.e. not contain special codes. Since some
* can be made with GSText, make sure the control codes are removed. */
- str_validate(text, text + strlen(text)), SVS_NONE);
+ ::str_validate(const_cast<char *>(text), text + strlen(text), SVS_NONE);
}
/* Set the default callback to return a true/false result of the DoCommand */