mirror of
https://github.com/ppy/osu.git
synced 2025-03-29 06:27: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);
|
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.
|
// 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.
|
// if not, the clone operation in GetPlayableBeatmap will cause a dereference and subsequent database exception.
|
||||||
score.ScoreInfo.BeatmapInfo = workingBeatmap.BeatmapInfo;
|
score.ScoreInfo.BeatmapInfo = workingBeatmap.BeatmapInfo;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user