diff --git a/profiler/src/profiler/TracyAchievements.cpp b/profiler/src/profiler/TracyAchievements.cpp index 584cd5b9..bd2c1dce 100644 --- a/profiler/src/profiler/TracyAchievements.cpp +++ b/profiler/src/profiler/TracyAchievements.cpp @@ -43,6 +43,23 @@ AchievementsMgr::AchievementsMgr() } } + for( auto& v : m_map ) + { + auto& it = v.second.item; + if( it->doneTime > 0 ) + { + auto c = it->items; + if( c ) + { + while( *c ) + { + if( (*c)->unlockTime == 0 ) (*c)->unlockTime = it->doneTime; + c++; + } + } + } + } + ini_free( ini ); }