Skip to content

Commit 0e48965

Browse files
quick fix to sethasgoal
1 parent 05738db commit 0e48965

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/Profile.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1499,6 +1499,7 @@ void Profile::LoadScoreGoalsFromNode(const XNode *pNode) {
14991499
ck = SONGMAN->ReconcileBustedKeys(ck);
15001500
goalmap[ck].LoadFromNode(chgoals);
15011501
}
1502+
SONGMAN->SetHasGoal(goalmap);
15021503
}
15031504

15041505
void Profile::LoadPlaylistsFromNode(const XNode *pNode) {

src/SongManager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ void SongManager::SetPermaMirroredStatus(set<string>& pmir) {
778778
}
779779

780780
// hurr should probably redo both (all three) of these -mina
781-
void SongManager::SetHasGoal(map<RString, vector<ScoreGoal>> goalmap) {
781+
void SongManager::SetHasGoal(unordered_map<string, GoalsForChart>& goalmap) {
782782
FOREACH(Song*, m_pSongs, song)
783783
FOREACH_CONST(Steps*, (*song)->GetAllSteps(), steps)
784784
if(goalmap.count((*steps)->GetChartKey()))

src/SongManager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class SongManager
106106
bool IsGroupNeverCached(const RString& group) const;
107107
void SetFavoritedStatus(set<string>& favs);
108108
void SetPermaMirroredStatus(set<string>& pmir);
109-
void SetHasGoal(map<RString, vector<ScoreGoal>> goalmap);
109+
void SetHasGoal(unordered_map<string, GoalsForChart>& goalmap);
110110

111111
RString GetSongGroupBannerPath( const RString &sSongGroup ) const;
112112
//RString GetSongGroupBackgroundPath( RString sSongGroup ) const;

0 commit comments

Comments
 (0)