Skip to content

Commit

Permalink
Fix replay data score upload
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed Jan 2, 2018
1 parent c93e58a commit 12cf2f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/StageStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,6 @@ static HighScore FillInHighScore(const PlayerStageStats &pss, const PlayerState
hs.SetSkillsetSSR(ss, 0.f);
}

bool writesuccess = hs.WriteReplayData();
if (writesuccess)
hs.UnloadReplayData();
}

pss.GenerateValidationKeys(hs);
Expand Down Expand Up @@ -337,6 +334,9 @@ void StageStats::FinalizeScores(bool bSummary)
hs.timeStamps.clear();
hs.timeStamps.shrink_to_fit();
}
bool writesuccess = hs.WriteReplayData();
if (writesuccess)
hs.UnloadReplayData();
zzz->SetAnyAchievedGoals(GAMESTATE->m_pCurSteps[PLAYER_1]->GetChartKey(), GAMESTATE->m_SongOptions.GetCurrent().m_fMusicRate, hs);
mostrecentscorekey = hs.GetScoreKey();
zzz->m_lastSong.FromSong(GAMESTATE->m_pCurSong);
Expand Down

0 comments on commit 12cf2f2

Please sign in to comment.