Skip to content

Commit

Permalink
prevent duplicated favorite entries
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jan 21, 2017
1 parent f8e746e commit 4889947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ScreenSelectMusic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ bool ScreenSelectMusic::Input( const InputEventPlus &input )
{
// Favorite the currently selected song. -Not Kyz
Song* fav_me_biatch = m_MusicWheel.GetSelectedSong();
if (fav_me_biatch) {
if (fav_me_biatch && !fav_me_biatch->IsFavorited()) {
Profile *pProfile = PROFILEMAN->GetProfile(PLAYER_1);
fav_me_biatch->SetFavorited(true);
pProfile->AddToFavorites(GAMESTATE->m_pCurSteps[PLAYER_1]->GetChartKey());
Expand Down

0 comments on commit 4889947

Please sign in to comment.