1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-21 20:17:21 +08:00

Merge pull request #1099 from swoolcock/fix-track-not-resetting

Fixes an issue where a beatmap would not reset after playing it
This commit is contained in:
Dean Herbert 2017-08-18 22:39:28 +09:00 committed by GitHub
commit 49422a61d7

View File

@ -370,6 +370,9 @@ namespace osu.Game.Screens.Select
if (!track.IsRunning)
{
// Ensure the track is added to the TrackManager, since it is removed after the player finishes the map.
// Using AddItemToList rather than AddItem so that it doesn't attempt to register adjustment dependencies more than once.
Game.Audio.Track.AddItemToList(track);
if (preview) track.Seek(Beatmap.Value.Metadata.PreviewTime);
track.Start();
}