This commit is contained in:
Glenn Maynard
2004-05-21 05:40:52 +00:00
parent 6ca3046d2e
commit c31cd9d287
+4 -4
View File
@@ -242,9 +242,9 @@ int Profile::GetActualSongDancePointsForStepsType( StepsType st ) const
{ {
for( std::map<SongID,HighScoresForASong>::const_iterator i = m_SongHighScores.begin(); for( std::map<SongID,HighScoresForASong>::const_iterator i = m_SongHighScores.begin();
i != m_SongHighScores.end(); i != m_SongHighScores.end();
i++ ) ++i )
{ {
SongID id = i->first; const SongID &id = i->first;
Song* pSong = id.ToSong(); Song* pSong = id.ToSong();
// If the Song isn't loaded on the current machine, then we can't // If the Song isn't loaded on the current machine, then we can't
@@ -259,9 +259,9 @@ int Profile::GetActualSongDancePointsForStepsType( StepsType st ) const
for( std::map<StepsID,HighScoresForASteps>::const_iterator j = hsfas.m_StepsHighScores.begin(); for( std::map<StepsID,HighScoresForASteps>::const_iterator j = hsfas.m_StepsHighScores.begin();
j != hsfas.m_StepsHighScores.end(); j != hsfas.m_StepsHighScores.end();
j++ ) ++j )
{ {
StepsID id = j->first; const StepsID &id = j->first;
Steps* pSteps = id.ToSteps( pSong, true ); Steps* pSteps = id.ToSteps( pSong, true );
// If the Steps isn't loaded on the current machine, then we can't // If the Steps isn't loaded on the current machine, then we can't