Fix crash with AllowMultipleHighScoreWithSameName (#1963)

This commit is contained in:
x0rbl
2020-02-12 06:10:28 -08:00
committed by GitHub
parent 50de3a1f2d
commit 0b34a0df3a
+1 -1
View File
@@ -405,7 +405,7 @@ void HighScoreList::LoadFromNode( const XNode* pHighScoreList )
void HighScoreList::RemoveAllButOneOfEachName() void HighScoreList::RemoveAllButOneOfEachName()
{ {
for (vector<HighScore>::iterator i = vHighScores.begin(); i != vHighScores.end() - 1; ++i) for (vector<HighScore>::iterator i = vHighScores.begin(); i != vHighScores.end(); ++i)
{ {
for( vector<HighScore>::iterator j = i+1; j != vHighScores.end(); j++ ) for( vector<HighScore>::iterator j = i+1; j != vHighScores.end(); j++ )
{ {