mirror of
https://github.com/osukey/osukey.git
synced 2025-06-11 06:18:00 +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)
|
if (size != 0)
|
||||||
size = 1.0f / size;
|
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 }))
|
foreach (var bar in value.Select((length, index) => new { Value = length, Index = index }))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user