mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:57:36 +08:00
Fix PreviewBar receiving a NaN Width value
This commit is contained in:
parent
9a395882a7
commit
1f762dc6d8
@ -117,7 +117,7 @@ namespace osu.Game.Overlays.Direct
|
||||
{
|
||||
base.Update();
|
||||
|
||||
if (PreviewPlaying && Preview != null)
|
||||
if (PreviewPlaying && Preview != null && Preview.IsLoaded)
|
||||
{
|
||||
PreviewBar.Width = (float)(Preview.CurrentTime / Preview.Length);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user