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
1 changed files with 1 additions and 2 deletions

View File

@ -133,8 +133,7 @@ public void GetTotalScore([NotNull] ScoreInfo score, [NotNull] Action<long> call
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;