mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Disallow inserting a group if one already exists with the current time value
This commit is contained in:
@ -279,9 +279,11 @@ namespace osu.Game.Beatmaps.ControlPoints
|
||||
var newGroup = new ControlPointGroup(time);
|
||||
|
||||
int i = groups.BinarySearch(newGroup);
|
||||
if (i < 0) i = ~i;
|
||||
|
||||
groups.Insert(i, newGroup);
|
||||
if (i > 0)
|
||||
return groups[i];
|
||||
|
||||
groups.Insert(~i, newGroup);
|
||||
|
||||
return newGroup;
|
||||
}
|
||||
|
Reference in New Issue
Block a user