escape quotes in sring literals to fix error compiling "PlayCommand,Don't"

This commit is contained in:
Chris Danford
2005-03-22 00:56:25 +00:00
parent 66a30e72b8
commit 1ce86551bd
+1
View File
@@ -56,6 +56,7 @@ ActorCommands::ActorCommands( const CString &sCommands )
if( i==1 && bFirstParamIsString ) // string literal
{
sArg.Replace( "'", "\\'" ); // escape quote
s << "'" << sArg << "'";
}
else if( sArg[0] == '#' ) // HTML color