mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Attempt to fix nullref warning.
This commit is contained in:
@ -11,6 +11,7 @@ using osu.Game.Modes.Objects.Drawables;
|
||||
using osu.Game.Screens.Play;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
|
||||
namespace osu.Game.Modes.UI
|
||||
@ -52,6 +53,8 @@ namespace osu.Game.Modes.UI
|
||||
|
||||
protected HitRenderer(WorkingBeatmap beatmap)
|
||||
{
|
||||
Debug.Assert(beatmap != null, "HitRenderer initialized with a null beatmap.");
|
||||
|
||||
// Convert + process the beatmap
|
||||
Beatmap = CreateBeatmapConverter().Convert(beatmap.Beatmap);
|
||||
Beatmap.HitObjects.ForEach(CreateBeatmapProcessor().SetDefaults);
|
||||
|
Reference in New Issue
Block a user