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