diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index c5072b0568..e671e8c530 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -884,6 +884,8 @@ void SortCoursePointerArrayByDifficulty( vector &apCourses ) void SortCoursePointerArrayByRanking( vector &apCourses ) { + for(unsigned i=0; iUpdateCourseStats(); sort( apCourses.begin(), apCourses.end(), CompareCoursePointersByRanking ); } @@ -894,6 +896,8 @@ void SortCoursePointerArrayByAvgDifficulty( vector &apCourses ) void SortCoursePointerArrayByTotalDifficulty( vector &apCourses ) { + for(unsigned i=0; iUpdateCourseStats(); sort( apCourses.begin(), apCourses.end(), CompareCoursePointersByTotalDifficulty ); } diff --git a/stepmania/src/MusicWheel.cpp b/stepmania/src/MusicWheel.cpp index 255a4c9f3b..b6d0832a41 100644 --- a/stepmania/src/MusicWheel.cpp +++ b/stepmania/src/MusicWheel.cpp @@ -568,9 +568,6 @@ void MusicWheel::BuildWheelItemDatas( vector &arrayWheelItemDatas if (PREFSMAN->m_iCourseSortOrder != PrefsManager::COURSE_SORT_SONGS) { - for(i=0; iUpdateCourseStats(); - if (PREFSMAN->m_iCourseSortOrder == PrefsManager::COURSE_SORT_METER) SortCoursePointerArrayByAvgDifficulty( apCourses );