From cd7bde347b69e518571f036d7e2ca5872569bf2c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 18 Feb 2004 00:27:50 +0000 Subject: [PATCH] fix crash on quit when no songs are loaded --- stepmania/src/ProfileHtml.cpp | 1 + 1 file changed, 1 insertion(+) 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 ];