MusicController regression fixes.

This commit is contained in:
Dean Herbert
2017-04-07 11:02:37 +09:00
parent bc4e0bfa8b
commit 7c9f30c288
2 changed files with 4 additions and 2 deletions

View File

@ -237,7 +237,7 @@ namespace osu.Game.Overlays
if (current?.TrackLoaded ?? false)
{
progress.UpdatePosition((float)(current.Track.CurrentTime / current.Track.Length));
progress.UpdatePosition(current.Track.Length == 0 ? 0 : (float)(current.Track.CurrentTime / current.Track.Length));
playButton.Icon = current.Track.IsRunning ? FontAwesome.fa_pause_circle_o : FontAwesome.fa_play_circle_o;
if (current.Track.HasCompleted && !current.Track.Looping) next();