From 331cdbd0525863a02aded0044ad4ea1a354e715c Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 26 Jul 2018 07:51:32 -0400 Subject: [PATCH] don't load goals for unloaded steps for now i don't want to deal with excluding them from songname/chartdiff sorting atm --- src/Profile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Profile.cpp b/src/Profile.cpp index cbc99d4784..4b291bc0ea 100644 --- a/src/Profile.cpp +++ b/src/Profile.cpp @@ -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);