mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 17:32:54 +08: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();
|
||||
|
||||
if (Playing.Value && preview != null)
|
||||
if (Playing.Value && preview != null && preview.Length > 0)
|
||||
{
|
||||
progress.Width = (float)(preview.CurrentTime / preview.Length);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user