1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 07:27:25 +08:00

Assert PP not null when showPerformancePoints is true

This commit is contained in:
Salman Ahmed 2021-08-29 16:03:37 +03:00
parent e374ef163d
commit 8f3416d853

View File

@ -4,6 +4,7 @@
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics;
using System.Linq; using System.Linq;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Extensions; using osu.Framework.Extensions;
@ -192,6 +193,8 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
if (showPerformancePoints) if (showPerformancePoints)
{ {
Debug.Assert(score.PP != null);
content.Add(new OsuSpriteText content.Add(new OsuSpriteText
{ {
Text = score.PP.ToLocalisableString(@"N0"), Text = score.PP.ToLocalisableString(@"N0"),