Skip to content

Commit

Permalink
Fix ctrl+g on packs
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed Dec 1, 2018
1 parent 627cc69 commit 79709a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ScreenSelectMusic.cpp
Expand Up @@ -515,7 +515,8 @@ ScreenSelectMusic::Input(const InputEventPlus& input)
return true;
}
} else if (bHoldingCtrl && c == 'G' && m_MusicWheel.IsSettled() &&
input.type == IET_FIRST_PRESS) {
input.type == IET_FIRST_PRESS &&
GAMESTATE->m_pCurSteps[PLAYER_1] != nullptr) {
Profile* pProfile = PROFILEMAN->GetProfile(PLAYER_1);
pProfile->AddGoal(GAMESTATE->m_pCurSteps[PLAYER_1]->GetChartKey());
Song* asonglol = m_MusicWheel.GetSelectedSong();
Expand Down

0 comments on commit 79709a5

Please sign in to comment.