Skip to content

Commit 9bcc516

Browse files
lock goal scans behind a check for any, should handle this better probably
1 parent dd04262 commit 9bcc516

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/StageStats.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,10 @@ void StageStats::FinalizeScores( bool bSummary )
292292
// new score structure -mina
293293
PROFILEMAN->AddScoreByKey(p, hs);
294294
Profile* zzz = PROFILEMAN->GetProfile(PLAYER_1);
295-
zzz->SetAnyAchievedGoals(GAMESTATE->m_pCurSteps[PLAYER_1]->GetChartKey(), GAMESTATE->m_SongOptions.GetCurrent().m_fMusicRate, hs);
295+
296+
// should prolly handle this check internally instead -mina
297+
if (zzz->ChartkeyHasGoal(GAMESTATE->m_pCurSteps[PLAYER_1]->GetChartKey()));
298+
zzz->SetAnyAchievedGoals(GAMESTATE->m_pCurSteps[PLAYER_1]->GetChartKey(), GAMESTATE->m_SongOptions.GetCurrent().m_fMusicRate, hs);
296299
}
297300
}
298301

0 commit comments

Comments
 (0)