1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:02:53 +08:00

Replace assertion with soft null check

Surrounding `OnDrag{Start,End}` methods did so already.
This commit is contained in:
Bartłomiej Dach 2021-12-22 10:28:35 +01:00
parent 6330fa5dc5
commit c3fada1926
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -2,7 +2,6 @@
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using JetBrains.Annotations;
using osu.Framework.Allocation;
@ -167,9 +166,8 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
protected override void OnDrag(DragEvent e)
{
Debug.Assert(placementControlPoint != null);
placementControlPoint.Position = e.MousePosition - HitObject.Position;
if (placementControlPoint != null)
placementControlPoint.Position = e.MousePosition - HitObject.Position;
}
protected override void OnDragEnd(DragEndEvent e)