mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 16:13:34 +08:00
Fix imported scores not getting LegacyTotalScore
This commit is contained in:
parent
6e2369e651
commit
e291dff5ad
@ -123,6 +123,9 @@ namespace osu.Game.Scoring.Legacy
|
||||
|
||||
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
Block a user