From e70d0778896179c8780a9f9d2f7489caad624ca3 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 8 Jun 2005 05:12:11 +0000 Subject: [PATCH] fix loading of profile LastSong and LastCourse --- stepmania/src/CourseUtil.cpp | 2 +- stepmania/src/SongUtil.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/CourseUtil.cpp b/stepmania/src/CourseUtil.cpp index 3ceaf4872c..e16c074bbc 100644 --- a/stepmania/src/CourseUtil.cpp +++ b/stepmania/src/CourseUtil.cpp @@ -226,7 +226,7 @@ Course *CourseID::ToCourse() const // Re-add the leading "/". 2005/05/21 file layer changes added a leading slash. CString sPath2 = sPath; if( sPath2.Left(1) != "/" ) - sPath2.erase( sPath2.begin() ); + sPath2 = "/" + sPath2; if( !sPath2.empty() ) { diff --git a/stepmania/src/SongUtil.cpp b/stepmania/src/SongUtil.cpp index fb17961564..6b425ea01a 100644 --- a/stepmania/src/SongUtil.cpp +++ b/stepmania/src/SongUtil.cpp @@ -392,7 +392,7 @@ Song *SongID::ToSong() const // Re-add the leading "/". 2005/05/21 file layer changes added a leading slash. CString sDir2 = sDir; if( sDir2.Left(1) != "/" ) - sDir2.erase( sDir2.begin() ); + sDir2 = "/" + sDir2; return SONGMAN->GetSongFromDir( sDir2 ); }