1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-21 12:47:44 +08:00

Fix nullref in tests due to missing EditorBeatmap dependency

This commit is contained in:
Dean Herbert 2022-10-27 19:05:50 +09:00
parent 2f172b66cf
commit 361153f598

View File

@ -104,7 +104,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
return true;
}
private bool hasSingleObjectSelected => editorBeatmap.SelectedHitObjects.Count == 1;
private bool hasSingleObjectSelected => editorBeatmap == null || editorBeatmap.SelectedHitObjects.Count == 1;
protected override void Update()
{