diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index 3062abaca7..ee11c5d9a8 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -1810,7 +1810,8 @@ StepsType Profile::GetLastPlayedStepsType() const { if( m_vRecentStepsScores.empty() ) return STEPS_TYPE_INVALID; - return m_vRecentStepsScores.back()->stepsID.GetStepsType(); + const HighScoreForASongAndSteps &h = m_vRecentStepsScores.back(); + return h.stepsID.GetStepsType(); } const Profile::HighScoresForASong *Profile::GetHighScoresForASong( const SongID& songID ) const