mirror of
https://github.com/ppy/osu.git
synced 2026-06-02 21:40:58 +08:00
Add assert to appease rider/r#
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
@@ -43,6 +44,9 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Layers
|
||||
|
||||
public override void Add(HitObjectMask drawable)
|
||||
{
|
||||
// Rider 2018.1 requires this (roslyn analyser issue?)
|
||||
Debug.Assert(drawable != null);
|
||||
|
||||
base.Add(drawable);
|
||||
|
||||
drawable.Selected += onMaskSelected;
|
||||
@@ -53,6 +57,9 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Layers
|
||||
|
||||
public override bool Remove(HitObjectMask drawable)
|
||||
{
|
||||
// Rider 2018.1 requires this (roslyn analyser issue?)
|
||||
Debug.Assert(drawable != null);
|
||||
|
||||
var result = base.Remove(drawable);
|
||||
|
||||
if (result)
|
||||
|
||||
Reference in New Issue
Block a user