mirror of
https://github.com/ppy/osu.git
synced 2024-09-22 05:27:23 +08:00
Merge pull request #1678 from ColdVolcano/fix-direct-preview
Fix playing a preview in direct crashing the game
This commit is contained in:
commit
2fdf39586a
@ -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