Skip to content

Commit

Permalink
lock goal scans behind a check for any, should handle this better pro…
Browse files Browse the repository at this point in the history
…bably
  • Loading branch information
MinaciousGrace committed Apr 30, 2017
1 parent dd04262 commit 9bcc516
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/StageStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,10 @@ void StageStats::FinalizeScores( bool bSummary )
// new score structure -mina
PROFILEMAN->AddScoreByKey(p, hs);
Profile* zzz = PROFILEMAN->GetProfile(PLAYER_1);
zzz->SetAnyAchievedGoals(GAMESTATE->m_pCurSteps[PLAYER_1]->GetChartKey(), GAMESTATE->m_SongOptions.GetCurrent().m_fMusicRate, hs);

// should prolly handle this check internally instead -mina
if (zzz->ChartkeyHasGoal(GAMESTATE->m_pCurSteps[PLAYER_1]->GetChartKey()));
zzz->SetAnyAchievedGoals(GAMESTATE->m_pCurSteps[PLAYER_1]->GetChartKey(), GAMESTATE->m_SongOptions.GetCurrent().m_fMusicRate, hs);
}
}

Expand Down

0 comments on commit 9bcc516

Please sign in to comment.