From 21316d790452fc586e64501a2f2192650fd73e24 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 20 Jan 2005 01:09:34 +0000 Subject: [PATCH] use GetArg, so parameters are evaluated correctly --- stepmania/src/GameCommand.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/stepmania/src/GameCommand.cpp b/stepmania/src/GameCommand.cpp index 373e5c5ba1..69319e5a55 100644 --- a/stepmania/src/GameCommand.cpp +++ b/stepmania/src/GameCommand.cpp @@ -134,7 +134,13 @@ void GameCommand::Load( int iIndex, const Commands& cmds ) if( sName.empty() ) continue; - CString sValue = join( ",", command->m_vsArgs.begin()+1, command->m_vsArgs.end() ); + CString sValue; + for( unsigned i = 1; i < command->m_vsArgs.size(); ++i ) + { + if( i > 1 ) + sValue += ","; + sValue += command->GetArg(i); + } if( sName == "game" ) {