1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 16:52:54 +08:00

Add assert to appease rider/r#

This commit is contained in:
Dean Herbert 2018-04-23 15:03:41 +09:00
parent 36a671e306
commit 6e16f2a3c3

View File

@ -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)