diff options
-rw-r--r-- | engines/avalanche/highscore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/avalanche/highscore.cpp b/engines/avalanche/highscore.cpp index bbe92e7f8a..5f47aeb894 100644 --- a/engines/avalanche/highscore.cpp +++ b/engines/avalanche/highscore.cpp @@ -42,7 +42,7 @@ void HighScore::displayHighScores() { void HighScore::saveHighScores() { int firstSmaller = 0; - while ((_data[firstSmaller]._score >= _vm->_score) && (firstSmaller < 12)) + while ((firstSmaller < 12) && (_data[firstSmaller]._score >= _vm->_score)) firstSmaller++; if (firstSmaller < 12) { |