diff --git a/src/achievements/achievements_manager.cpp b/src/achievements/achievements_manager.cpp index b5194854a..5e5039a1c 100644 --- a/src/achievements/achievements_manager.cpp +++ b/src/achievements/achievements_manager.cpp @@ -86,6 +86,8 @@ AchievementsStatus* status->add(achievement); } + status->updateAllAchievementsProgress(); + if (node) status->load(node); diff --git a/src/achievements/achievements_status.hpp b/src/achievements/achievements_status.hpp index 01921e55a..03921a8ee 100644 --- a/src/achievements/achievements_status.hpp +++ b/src/achievements/achievements_status.hpp @@ -213,7 +213,6 @@ private: void setEnumToString(); void updateAchievementsProgress(UpdateType type, unsigned int enum_id); - void updateAllAchievementsProgress(); public : AchievementsStatus(); @@ -230,6 +229,7 @@ public : void trackEvent(std::string track_ident, AchievementsStatus::TrackData event); void resetKartHits(int num_karts); void addKartHit(int kart_id); + void updateAllAchievementsProgress(); // ------------------------------------------------------------------------ std::map& getAllAchievements() {