std::map.end() points PAST the last element, not at it!

This commit is contained in:
Ben Anderson
2005-05-28 00:47:34 +00:00
parent 98c5e7348b
commit 0a9f3d1552
+1 -1
View File
@@ -1240,7 +1240,7 @@ XNode* Profile::SaveSongScoresCreateNode() const
XNode* pSongNode = pNode->AppendChild( songID.CreateNode() );
for( map<StepsID,HighScoresForASteps>::const_iterator j = hsSong.m_StepsHighScores.begin();
j != hsSong.m_StepsHighScores.end();
j < hsSong.m_StepsHighScores.end();
j++ )
{
const StepsID &stepsID = j->first;