Skip to content

Commit

Permalink
Fix 0 online ratings
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed Dec 29, 2017
1 parent bdfe79d commit c9e9d79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/DownloadManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ void DownloadManager::RefreshUserData()
}
FOREACH_ENUM(Skillset, ss)
(DLMAN->sessionRatings)[ss] = atof(json.get(SkillsetToString(ss), "0.0").asCString());
MESSAGEMAN->Broadcast("OnlineUpdate");
};
HTTPRequest* req = new HTTPRequest(curlHandle, done);
SetCURLResultsString(curlHandle, req->result);
Expand Down
2 changes: 1 addition & 1 deletion src/ScoreManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ HighScore* ScoreManager::GetChartPBUpTo(const string& ck, float& rate) {
return NULL;
}

void ScoreManager::SetAllTopScores() {
void ScoreManager::SetAllTopScores() {
FOREACHUM(string, ScoresForChart, pscores, i) {
if (!SONGMAN->IsChartLoaded(i->first))
continue;
Expand Down

0 comments on commit c9e9d79

Please sign in to comment.