Skip to content

Commit

Permalink
fix a crash when trying to add goals on non-charts
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jul 19, 2018
1 parent 2953a03 commit 88024ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ScreenSelectMusic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,8 @@ bool ScreenSelectMusic::Input(const InputEventPlus &input)
Profile *pProfile = PROFILEMAN->GetProfile(PLAYER_1);
pProfile->CreateGoal(GAMESTATE->m_pCurSteps[PLAYER_1]->GetChartKey());
Song* asonglol = m_MusicWheel.GetSelectedSong();
if (!asonglol)
return true;
asonglol->SetHasGoal(true);
Message msg("FavoritesUpdated");
MESSAGEMAN->Broadcast(msg);
Expand Down

0 comments on commit 88024ef

Please sign in to comment.