mirror of
https://github.com/osukey/osukey.git
synced 2025-06-03 20:07:18 +09: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…
x
Reference in New Issue
Block a user