1
0
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:
ColdVolcano
2017-12-08 15:46:09 -06:00
Unverified
parent 9a395882a7
commit 1f762dc6d8
+1 -1
View File
@@ -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);
}