diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index b214f7610a..a9882a0c21 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -242,9 +242,9 @@ int Profile::GetActualSongDancePointsForStepsType( StepsType st ) const { for( std::map::const_iterator i = m_SongHighScores.begin(); i != m_SongHighScores.end(); - i++ ) + ++i ) { - SongID id = i->first; + const SongID &id = i->first; Song* pSong = id.ToSong(); // 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::const_iterator j = hsfas.m_StepsHighScores.begin(); j != hsfas.m_StepsHighScores.end(); - j++ ) + ++j ) { - StepsID id = j->first; + const StepsID &id = j->first; Steps* pSteps = id.ToSteps( pSong, true ); // If the Steps isn't loaded on the current machine, then we can't