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:
parent
05992d3aa8
commit
0239103b6b
@ -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 }))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user