From 0a9f3d1552eea71929a514f5fd342ebb0e93d4be Mon Sep 17 00:00:00 2001 From: Ben Anderson Date: Sat, 28 May 2005 00:47:34 +0000 Subject: [PATCH] std::map.end() points PAST the last element, not at it! --- stepmania/src/Profile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index b89e73d070..462f99bd20 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -1240,7 +1240,7 @@ XNode* Profile::SaveSongScoresCreateNode() const XNode* pSongNode = pNode->AppendChild( songID.CreateNode() ); for( map::const_iterator j = hsSong.m_StepsHighScores.begin(); - j != hsSong.m_StepsHighScores.end(); + j < hsSong.m_StepsHighScores.end(); j++ ) { const StepsID &stepsID = j->first;