diff --git a/profiler/src/profiler/TracyAchievements.cpp b/profiler/src/profiler/TracyAchievements.cpp index 20df41b1..ee814336 100644 --- a/profiler/src/profiler/TracyAchievements.cpp +++ b/profiler/src/profiler/TracyAchievements.cpp @@ -77,6 +77,21 @@ AchievementsMgr::AchievementsMgr() } } + auto c = data::AchievementCategories; + while( *c ) + { + if( (*c)->unlockTime > 0 ) + { + auto items = (*c)->items; + while( *items ) + { + if( (*items)->unlockTime == 0 ) (*items)->unlockTime = (*c)->unlockTime; + items++; + } + } + c++; + } + ini_free( ini ); }