mirror of https://github.com/OpenTTD/OpenTTD
(svn r26093) -Fix (r26092): compilation error
parent
168fa4129d
commit
0460b78515
|
@ -290,7 +290,7 @@ ScriptObject::ActiveInstance::~ActiveInstance()
|
||||||
if (!StrEmpty(text) && (GetCommandFlags(cmd) & CMD_STR_CTRL) == 0) {
|
if (!StrEmpty(text) && (GetCommandFlags(cmd) & CMD_STR_CTRL) == 0) {
|
||||||
/* The string must be valid, i.e. not contain special codes. Since some
|
/* 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. */
|
* 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 */
|
/* Set the default callback to return a true/false result of the DoCommand */
|
||||||
|
|
Loading…
Reference in New Issue