mirror of https://github.com/ppy/osu
Fix imported scores not getting LegacyTotalScore
This commit is contained in:
parent
6e2369e651
commit
e291dff5ad
|
@ -123,6 +123,9 @@ public Score Parse(Stream stream)
|
|||
|
||||
PopulateAccuracy(score.ScoreInfo);
|
||||
|
||||
if (score.ScoreInfo.IsLegacyScore)
|
||||
score.ScoreInfo.LegacyTotalScore = score.ScoreInfo.TotalScore;
|
||||
|
||||
// before returning for database import, we must restore the database-sourced BeatmapInfo.
|
||||
// if not, the clone operation in GetPlayableBeatmap will cause a dereference and subsequent database exception.
|
||||
score.ScoreInfo.BeatmapInfo = workingBeatmap.BeatmapInfo;
|
||||
|
|
Loading…
Reference in New Issue