Skip to content

Commit

Permalink
quick fix to sethasgoal
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jun 7, 2017
1 parent 05738db commit 0e48965
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,7 @@ void Profile::LoadScoreGoalsFromNode(const XNode *pNode) {
ck = SONGMAN->ReconcileBustedKeys(ck);
goalmap[ck].LoadFromNode(chgoals);
}
SONGMAN->SetHasGoal(goalmap);
}

void Profile::LoadPlaylistsFromNode(const XNode *pNode) {
Expand Down
2 changes: 1 addition & 1 deletion src/SongManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ void SongManager::SetPermaMirroredStatus(set<string>& pmir) {
}

// hurr should probably redo both (all three) of these -mina
void SongManager::SetHasGoal(map<RString, vector<ScoreGoal>> goalmap) {
void SongManager::SetHasGoal(unordered_map<string, GoalsForChart>& goalmap) {
FOREACH(Song*, m_pSongs, song)
FOREACH_CONST(Steps*, (*song)->GetAllSteps(), steps)
if(goalmap.count((*steps)->GetChartKey()))
Expand Down
2 changes: 1 addition & 1 deletion src/SongManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class SongManager
bool IsGroupNeverCached(const RString& group) const;
void SetFavoritedStatus(set<string>& favs);
void SetPermaMirroredStatus(set<string>& pmir);
void SetHasGoal(map<RString, vector<ScoreGoal>> goalmap);
void SetHasGoal(unordered_map<string, GoalsForChart>& goalmap);

RString GetSongGroupBannerPath( const RString &sSongGroup ) const;
//RString GetSongGroupBackgroundPath( RString sSongGroup ) const;
Expand Down

0 comments on commit 0e48965

Please sign in to comment.