Skip to content

Commit

Permalink
don't load goals for unloaded steps for now
Browse files Browse the repository at this point in the history
i don't want to deal with excluding them from songname/chartdiff sorting atm
  • Loading branch information
MinaciousGrace committed Jul 26, 2018
1 parent 1e8290c commit 331cdbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,8 @@ void Profile::FillGoalTable() {
goaltable.clear();
for (auto& sgv : goalmap)
for (auto& sg : sgv.second.goals)
goaltable.emplace_back(&sg);
if(SONGMAN->GetStepsByChartkey(sg.chartkey))
goaltable.emplace_back(&sg);

auto comp = [](ScoreGoal* a, ScoreGoal* b) { return a->timeassigned > b->timeassigned; };
sort(goaltable.begin(), goaltable.end(), comp);
Expand Down

0 comments on commit 331cdbd

Please sign in to comment.