mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +09:00
Fixed a bug where Drawable.Width could potentially be set to NaN (0/0) by checking if last variable > 0.
This commit is contained in:
parent
6d9dcc6691
commit
efe6245e53
@ -80,7 +80,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
if (Playing.Value && preview != null)
|
if (Playing.Value && preview != null && preview.Length > 0)
|
||||||
{
|
{
|
||||||
progress.Width = (float)(preview.CurrentTime / preview.Length);
|
progress.Width = (float)(preview.CurrentTime / preview.Length);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user