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:
parent
8e781c170d
commit
9e97141e33
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user