Last instead of Max divisor to match code elsewhere

This commit is contained in:
Gyoshi 2023-05-23 18:45:49 +02:00
parent c5ef3ae181
commit 7fe19d1992

View File

@ -398,7 +398,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
ClearInternal(); ClearInternal();
CurrentNumber.ValueChanged -= moveMarker; CurrentNumber.ValueChanged -= moveMarker;
int largestDivisor = beatDivisor.ValidDivisors.Value.Presets.Max(); int largestDivisor = beatDivisor.ValidDivisors.Value.Presets.Last();
for (int tickIndex = 0; tickIndex <= largestDivisor; tickIndex++) for (int tickIndex = 0; tickIndex <= largestDivisor; tickIndex++)
{ {
int divisor = BindableBeatDivisor.GetDivisorForBeatIndex(tickIndex, largestDivisor, (int[])beatDivisor.ValidDivisors.Value.Presets); int divisor = BindableBeatDivisor.GetDivisorForBeatIndex(tickIndex, largestDivisor, (int[])beatDivisor.ValidDivisors.Value.Presets);