diff --git a/dll/steam_user_stats.h b/dll/steam_user_stats.h index eee3247..811008b 100644 --- a/dll/steam_user_stats.h +++ b/dll/steam_user_stats.h @@ -249,7 +249,7 @@ bool SetAchievement( const char *pchName ) auto it = std::find_if(defined_achievements.begin(), defined_achievements.end(), [pchName](nlohmann::json& item) { return item["name"].get() == pchName; }); - if (it != defined_achievements.end()) { + if (it != defined_achievements.end() && user_achievements[pchName]["earned"] == false) { user_achievements[pchName]["earned"] = true; user_achievements[pchName]["earned_time"] = static_cast(std::time(nullptr)); return true;