From 0b34a0df3adc33a5e66147a04a2d7e9d5721a98c Mon Sep 17 00:00:00 2001 From: x0rbl <46559321+x0rbl@users.noreply.github.com> Date: Wed, 12 Feb 2020 06:10:28 -0800 Subject: [PATCH] Fix crash with AllowMultipleHighScoreWithSameName (#1963) --- src/HighScore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HighScore.cpp b/src/HighScore.cpp index 38ce9420b2..626df6c22f 100644 --- a/src/HighScore.cpp +++ b/src/HighScore.cpp @@ -405,7 +405,7 @@ void HighScoreList::LoadFromNode( const XNode* pHighScoreList ) void HighScoreList::RemoveAllButOneOfEachName() { - for (vector::iterator i = vHighScores.begin(); i != vHighScores.end() - 1; ++i) + for (vector::iterator i = vHighScores.begin(); i != vHighScores.end(); ++i) { for( vector::iterator j = i+1; j != vHighScores.end(); j++ ) {