diff --git a/stepmania/src/CourseUtil.h b/stepmania/src/CourseUtil.h index 9d715f4da1..614fd81c16 100644 --- a/stepmania/src/CourseUtil.h +++ b/stepmania/src/CourseUtil.h @@ -37,15 +37,12 @@ namespace CourseUtil class CourseID { -public: - RString sPath; - RString sFullTitle; - public: CourseID() { Unset(); } void Unset() { FromCourse(NULL); } void FromCourse( const Course *p ); Course *ToCourse() const; + const RString &GetPath() const { return sPath; } bool operator<( const CourseID &other ) const { return sPath < other.sPath || sFullTitle < other.sFullTitle; @@ -55,6 +52,10 @@ public: void LoadFromNode( const XNode* pNode ); RString ToString() const; bool IsValid() const; + +private: + RString sPath; + RString sFullTitle; }; #endif diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index 8179497ae9..9d074d017e 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -1427,7 +1427,7 @@ void Profile::LoadCourseScoresFromNode( const XNode* pCourseScores ) if( pC == NULL ) { RString sDir, sFName, sExt; - splitpath( courseID.sPath, sDir, sFName, sExt ); + splitpath( courseID.GetPath(), sDir, sFName, sExt ); RString sFullFileName = sFName + sExt; FOREACH_CONST( Course*, vpAllCourses, c )