diff --git a/asteroids/Model.cc b/asteroids/Model.cc index c8af4e2..b90d751 100644 --- a/asteroids/Model.cc +++ b/asteroids/Model.cc @@ -262,6 +262,10 @@ unsigned int Model::AddHighscoreEntry(const std::string &name, const unsigned in if (counter < 10) return counter; + // if we have all 10 entries then we can save + // the highscore + SaveHighscoreList(); + mNewestHighscoreEntryIndex = 99999; return 99999;