fix crashes due to big meter values

This commit is contained in:
Glenn Maynard
2005-01-14 15:58:19 +00:00
parent 19512c4e9c
commit dbca4bbf7f
+3 -1
View File
@@ -296,7 +296,9 @@ void AddPlayerStatsToProfile( Profile *pProfile, const StageStats &ss, PlayerNum
pProfile->m_iNumSongsPlayedByPlayMode[ss.playMode]++;
pProfile->m_iNumSongsPlayedByStyle[sID] ++;
pProfile->m_iNumSongsPlayedByDifficulty[pSteps->GetDifficulty()] ++;
pProfile->m_iNumSongsPlayedByMeter[pSteps->GetMeter()] ++;
int iMeter = clamp( pSteps->GetMeter(), 0, MAX_METER );
pProfile->m_iNumSongsPlayedByMeter[iMeter] ++;
}
pProfile->m_iTotalDancePoints += ss.m_player[pn].iActualDancePoints;