1
0
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:
Dean Herbert 2021-08-30 18:33:05 +09:00
parent 015df282fe
commit 1aaea7011a

View File

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