From 1ce86551bd83957cbcafaf0afe25c5355d8d44f3 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Tue, 22 Mar 2005 00:56:25 +0000 Subject: [PATCH] escape quotes in sring literals to fix error compiling "PlayCommand,Don't" --- stepmania/src/ActorCommands.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stepmania/src/ActorCommands.cpp b/stepmania/src/ActorCommands.cpp index bb04b60304..16baa09101 100644 --- a/stepmania/src/ActorCommands.cpp +++ b/stepmania/src/ActorCommands.cpp @@ -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