1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

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();
CurrentNumber.ValueChanged -= moveMarker;
int largestDivisor = beatDivisor.ValidDivisors.Value.Presets.Max();
int largestDivisor = beatDivisor.ValidDivisors.Value.Presets.Last();
for (int tickIndex = 0; tickIndex <= largestDivisor; tickIndex++)
{
int divisor = BindableBeatDivisor.GetDivisorForBeatIndex(tickIndex, largestDivisor, (int[])beatDivisor.ValidDivisors.Value.Presets);