mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 21:03:21 +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)
|
||||
{
|
||||
if (controlPoint is SampleControlPoint typed)
|
||||
{
|
||||
samplePoints.Add(typed);
|
||||
return;
|
||||
}
|
||||
|
||||
base.GroupItemAdded(controlPoint);
|
||||
}
|
||||
@ -57,10 +54,7 @@ namespace osu.Game.Beatmaps.Legacy
|
||||
protected override void GroupItemRemoved(ControlPoint controlPoint)
|
||||
{
|
||||
if (controlPoint is SampleControlPoint typed)
|
||||
{
|
||||
samplePoints.Remove(typed);
|
||||
return;
|
||||
}
|
||||
|
||||
base.GroupItemRemoved(controlPoint);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user