escape quotes in sring literals to fix error compiling "PlayCommand,Don't"
This commit is contained in:
@@ -56,6 +56,7 @@ ActorCommands::ActorCommands( const CString &sCommands )
|
|||||||
|
|
||||||
if( i==1 && bFirstParamIsString ) // string literal
|
if( i==1 && bFirstParamIsString ) // string literal
|
||||||
{
|
{
|
||||||
|
sArg.Replace( "'", "\\'" ); // escape quote
|
||||||
s << "'" << sArg << "'";
|
s << "'" << sArg << "'";
|
||||||
}
|
}
|
||||||
else if( sArg[0] == '#' ) // HTML color
|
else if( sArg[0] == '#' ) // HTML color
|
||||||
|
|||||||
Reference in New Issue
Block a user