1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 15:52:54 +08:00

Fix BeatmapOverlay crashing test scene

This commit is contained in:
Andrei Zavatski 2022-11-19 11:33:14 +03:00
parent 05992d3aa8
commit 0239103b6b

View File

@ -57,7 +57,7 @@ namespace osu.Game.Graphics.UserInterface
if (size != 0)
size = 1.0f / size;
float maxLength = MaxValue ?? value.Max();
float maxLength = MaxValue ?? (newCount == 0 ? 0 : value.Max());
foreach (var bar in value.Select((length, index) => new { Value = length, Index = index }))
{