From de405afb373bbe9f77d7937d8eea560e6c37cb46 Mon Sep 17 00:00:00 2001 From: xwidghet Date: Sun, 22 Jan 2017 01:31:25 -0800 Subject: [PATCH] Don't calculate the skillsets we aren't looking for. --- src/Profile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Profile.cpp b/src/Profile.cpp index c91b7dd9ab..4c3034533c 100644 --- a/src/Profile.cpp +++ b/src/Profile.cpp @@ -2227,7 +2227,7 @@ SongID Profile::GetTopSSRSongID(unsigned int rank, int skillset) { if (rank <= 0) rank = 1; if (rank > static_cast(topSSRSongIds[skillset].size())) - if (CalcAllTopSSRs(rank) == false) { + if (CalcTopSSRs(rank, skillset) == false) { SongID emptySongID; return emptySongID; } @@ -2243,7 +2243,7 @@ StepsID Profile::GetTopSSRStepsID(unsigned int rank, int skillset) { if (rank <= 0) rank = 1; if (rank > static_cast(topSSRStepIds[skillset].size())) - if (CalcAllTopSSRs(rank) == false) { + if (CalcTopSSRs(rank, skillset) == false) { StepsID emptyStepID; return emptyStepID; } @@ -2259,7 +2259,7 @@ HighScore* Profile::GetTopSSRHighScore(unsigned int rank, int skillset) { if (rank <= 0) rank = 1; if (rank > static_cast(topSSRHighScoreLists[skillset].size())) - if (CalcAllTopSSRs(rank) == false) + if (CalcTopSSRs(rank, skillset) == false) return NULL; if (skillset >= 0 && skillset < NUM_Skillset) {