1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Fix playlist aggregate scores not displaying (again)

This commit is contained in:
Dean Herbert 2022-01-18 11:57:38 +09:00
parent 5dc7425b2c
commit ebc9d3a613

View File

@ -133,8 +133,7 @@ namespace osu.Game.Scoring
public async Task<long> GetTotalScoreAsync([NotNull] ScoreInfo score, ScoringMode mode = ScoringMode.Standardised, CancellationToken cancellationToken = default)
{
// TODO: This is required for playlist aggregate scores. They should likely not be getting here in the first place.
// ReSharper disable once ConditionIsAlwaysTrueOrFalse
if (score.BeatmapInfo == null)
if (string.IsNullOrEmpty(score.BeatmapInfo.Hash))
return score.TotalScore;
int beatmapMaxCombo;