1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Fix off-by-one error

This commit is contained in:
Marvin Schürz 2024-10-11 22:03:21 +02:00
parent 8e781c170d
commit 9e97141e33

View File

@ -140,8 +140,8 @@ namespace osu.Game.Rulesets.Osu.Edit
if (insertedCircles.Count > totalPoints)
{
editorBeatmap.RemoveRange(insertedCircles.GetRange(totalPoints + 1, insertedCircles.Count - totalPoints - 1));
insertedCircles.RemoveRange(totalPoints + 1, insertedCircles.Count - totalPoints - 1);
editorBeatmap.RemoveRange(insertedCircles.GetRange(totalPoints, insertedCircles.Count - totalPoints));
insertedCircles.RemoveRange(totalPoints, insertedCircles.Count - totalPoints);
}
var selectionHandler = (EditorSelectionHandler)composer.BlueprintContainer.SelectionHandler;