Merge pull request #1678 from ColdVolcano/fix-direct-preview

Fix playing a preview in direct crashing the game
This commit is contained in:
Dean Herbert
2017-12-09 13:12:30 +09:00
committed by GitHub

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);
}