diff --git a/stepmania/src/ProfileHtml.cpp b/stepmania/src/ProfileHtml.cpp index 257e0a408d..2fdb18ced1 100644 --- a/stepmania/src/ProfileHtml.cpp +++ b/stepmania/src/ProfileHtml.cpp @@ -245,6 +245,7 @@ void PrintStatistics( RageFile &f, const Profile *pProfile, CString sTitle, vect void PrintPopularity( RageFile &f, const Profile *pProfile, CString sTitle, vector &vpSongs, vector &vpAllSteps, vector &vStepsTypesToShow, map mapStepsToSong, vector vpCourses ) { PRINT_OPEN(f, sTitle ); + if( vpSongs.size() ) { SortSongPointerArrayByNumPlays( vpSongs, pProfile, true ); Song* pSongPopularThreshold = vpSongs[ vpSongs.size()*2/3 ];