mirror of
https://github.com/ppy/osu
synced 2025-02-05 12:52:04 +00:00
Fix nested catch objects not having a correct IndexInBeatmap
This commit is contained in:
parent
3f99d25e37
commit
69b5d5606a
@ -35,6 +35,9 @@ namespace osu.Game.Rulesets.Catch.Beatmaps
|
||||
foreach (var obj in Beatmap.HitObjects.OfType<CatchHitObject>())
|
||||
{
|
||||
obj.IndexInBeatmap = index++;
|
||||
foreach (var nested in obj.NestedHitObjects.OfType<CatchHitObject>())
|
||||
nested.IndexInBeatmap = obj.IndexInBeatmap;
|
||||
|
||||
if (obj.LastInCombo && obj.NestedHitObjects.LastOrDefault() is IHasComboInformation lastNested)
|
||||
lastNested.LastInCombo = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user