mirror of
https://github.com/ppy/osu.git
synced 2025-02-10 06:52:54 +08:00
Merge pull request #10724 from nbvdkamp/fix-slider-quickdelete-crash
Fix nullref when quickdeleting slider that hasn't been selected yet
This commit is contained in:
commit
16f55de495
@ -75,7 +75,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
|
|||||||
|
|
||||||
public override bool HandleQuickDeletion()
|
public override bool HandleQuickDeletion()
|
||||||
{
|
{
|
||||||
var hoveredControlPoint = ControlPointVisualiser.Pieces.FirstOrDefault(p => p.IsHovered);
|
var hoveredControlPoint = ControlPointVisualiser?.Pieces.FirstOrDefault(p => p.IsHovered);
|
||||||
|
|
||||||
if (hoveredControlPoint == null)
|
if (hoveredControlPoint == null)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user