mirror of
https://github.com/ppy/osu
synced 2024-12-27 01:12:45 +00:00
Use Debug.Assert instead.
This commit is contained in:
parent
079fcf13a6
commit
6a643cb6ea
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
|
using System.Diagnostics;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Screens;
|
using osu.Framework.Screens;
|
||||||
@ -80,8 +81,8 @@ namespace osu.Game.Screens.Play
|
|||||||
if (!this.IsCurrentScreen())
|
if (!this.IsCurrentScreen())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (GameplayState.Ruleset is not ILegacyRuleset legacyRuleset)
|
var legacyRuleset = GameplayState.Ruleset as ILegacyRuleset;
|
||||||
return;
|
Debug.Assert(legacyRuleset != null);
|
||||||
|
|
||||||
bool isFirstBundle = score.Replay.Frames.Count == 0;
|
bool isFirstBundle = score.Replay.Frames.Count == 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user