Use object list size for object position

This commit is contained in:
apollo-dw
2022-05-24 16:30:25 +01:00
parent 5dbec92d9e
commit 30b9e0e7ab
9 changed files with 15 additions and 21 deletions

View File

@ -92,7 +92,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty
// The first jump is formed by the first two hitobjects of the map.
// If the map has less than two OsuHitObjects, the enumerator will not return anything.
for (int i = 1; i < beatmap.HitObjects.Count; i++)
objects.Add(new OsuDifficultyHitObject(beatmap.HitObjects[i], beatmap.HitObjects[i - 1], clockRate, objects, i - 1));
objects.Add(new OsuDifficultyHitObject(beatmap.HitObjects[i], beatmap.HitObjects[i - 1], clockRate, objects));
return objects;
}