Skip to content

Commit

Permalink
fix grade displays with new profile
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 5, 2017
1 parent 3477591 commit 698d1e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ChartScores.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ void ScoresForChart::LoadFromNode(const XNode* node, const RString& ck) {
p->GetAttrValue("Rate", rs);
rate = 10 * StringToInt(rs.substr(0, 1) + rs.substr(2, 4));
ScoresByRate[rate].LoadFromNode(p, ck,KeyToRate(rate));
bestGrade = ScoresByRate[rate].bestGrade;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/MusicWheelItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ void MusicWheelItem::RefreshGrades()
FOREACH_ENUM_N(Difficulty, 6, i) {
Steps* pSteps = SongUtil::GetStepsByDifficulty(pWID->m_pSong, st, i);
if (pSteps != NULL) {
Grade dcg = pProfile->pscores.GetBestGradeFor(pSteps->ChartKey);
Grade dcg = pProfile->pscores.GetBestGradeFor(pSteps->GetChartKey());
if (gradeBest >= dcg) {
dcBest = i;
gradeBest = dcg;
Expand Down

0 comments on commit 698d1e6

Please sign in to comment.