mirror of
https://github.com/ppy/osu.git
synced 2026-06-02 06:49:54 +08:00
Fix PreviewBar receiving a NaN Width value
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user