From 1e074fbeaec67c3ae5208ea4f7303d7bff1ae949 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Fri, 5 Aug 2005 18:18:08 +0000 Subject: [PATCH] fix for both VC6 and VC7 --- stepmania/src/Profile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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