diff --git a/stepmania/src/RageFile.cpp b/stepmania/src/RageFile.cpp index 73f5736b5c..1567c807c7 100644 --- a/stepmania/src/RageFile.cpp +++ b/stepmania/src/RageFile.cpp @@ -19,8 +19,9 @@ void FixSlashesInPlace( CString &sPath ) { - sPath.Replace( "/", SLASH ); - sPath.Replace( "\\", SLASH ); + for( unsigned i = 0; i < sPath.size(); ++i ) + if( sPath[i] == '\\' ) + sPath[i] = '/'; } CString FixSlashes( CString sPath )