Skip to content

Commit

Permalink
bump HighScore ck/sk/rate loading up the load stack slightly
Browse files Browse the repository at this point in the history
need this here so other HighScore loading functions that use these variables can attempt to use them instead of using blank data always
  • Loading branch information
poco0317 committed Jan 9, 2021
1 parent 9ff834c commit 88eaa77
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Etterna/Singletons/ScoreManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,11 @@ ScoresAtRate::LoadFromNode(const XNode* node,
FOREACH_CONST_Child(node, p)
{
p->GetAttrValue("Key", sk);

// Fill in stuff for the highscores
scores[sk].SetChartKey(ck);
scores[sk].SetScoreKey(sk);
scores[sk].SetMusicRate(rate);
scores[sk].LoadFromEttNode(p);

// Set any pb
Expand All @@ -1107,11 +1112,6 @@ ScoresAtRate::LoadFromNode(const XNode* node,

HandleNoCCPB(scores[sk]);

// Fill in stuff for the highscores
scores[sk].SetChartKey(ck);
scores[sk].SetScoreKey(sk);
scores[sk].SetMusicRate(rate);

bestGrade = std::min(scores[sk].GetWifeGrade(), bestGrade);
if (scores[sk].GetWifeGrade() != Grade_Failed) {
bestWifeScore =
Expand Down

0 comments on commit 88eaa77

Please sign in to comment.