Command: Remove unused CMD_STR_SEP flag

This commit is contained in:
Jonathan G Rennison
2022-12-07 21:07:59 +00:00
parent 5c134e6dd0
commit 6a03e7ba97
3 changed files with 1 additions and 3 deletions

View File

@@ -329,7 +329,7 @@ ScriptObject::ActiveInstance::~ActiveInstance()
/* 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. */
text_validated = text;
::StrMakeValidInPlace(text_validated, (GetCommandFlags(cmd) & CMD_STR_SEP) ? SVS_ALLOW_SEPARATOR_CODE : SVS_NONE);
::StrMakeValidInPlace(text_validated, SVS_NONE);
text = text_validated.c_str();
}