Skip to content

Commit

Permalink
Fix profile rating updating after score uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed Apr 23, 2018
1 parent 9ff3a4e commit acc38c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DownloadManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ void DownloadManager::UploadScoreWithReplayData(HighScore* hs)
parsed = false;
}
hs->AddUploadedServer(serverURL.Get());
if (parsed && j.find("error") != j.end()) {
if (parsed && j.find("error") == j.end()) {
FOREACH_ENUM(Skillset, ss)
if(ss!=Skill_Overall)
(DLMAN->sessionRatings)[ss] = ratings.value(SkillsetToString(ss), 0.0);
Expand Down

0 comments on commit acc38c3

Please sign in to comment.