fix crashes due to big meter values
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user