mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 05:52:56 +08:00
Fix early return causing event loss in case of multiple control points in group
This commit is contained in:
parent
015df282fe
commit
1aaea7011a
@ -46,10 +46,7 @@ namespace osu.Game.Beatmaps.Legacy
|
|||||||
protected override void GroupItemAdded(ControlPoint controlPoint)
|
protected override void GroupItemAdded(ControlPoint controlPoint)
|
||||||
{
|
{
|
||||||
if (controlPoint is SampleControlPoint typed)
|
if (controlPoint is SampleControlPoint typed)
|
||||||
{
|
|
||||||
samplePoints.Add(typed);
|
samplePoints.Add(typed);
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
base.GroupItemAdded(controlPoint);
|
base.GroupItemAdded(controlPoint);
|
||||||
}
|
}
|
||||||
@ -57,10 +54,7 @@ namespace osu.Game.Beatmaps.Legacy
|
|||||||
protected override void GroupItemRemoved(ControlPoint controlPoint)
|
protected override void GroupItemRemoved(ControlPoint controlPoint)
|
||||||
{
|
{
|
||||||
if (controlPoint is SampleControlPoint typed)
|
if (controlPoint is SampleControlPoint typed)
|
||||||
{
|
|
||||||
samplePoints.Remove(typed);
|
samplePoints.Remove(typed);
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
base.GroupItemRemoved(controlPoint);
|
base.GroupItemRemoved(controlPoint);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user