mirror of
https://github.com/ppy/osu.git
synced 2025-03-19 00:37:20 +08:00
Merge pull request #5548 from iiSaLMaN/fix-music-controller-skipping-more-than-once
Fix Music Controller skipping more than once
This commit is contained in:
commit
1d1fd91275
@ -307,7 +307,9 @@ namespace osu.Game
|
||||
if (nextBeatmap?.Track != null)
|
||||
nextBeatmap.Track.Completed += currentTrackCompleted;
|
||||
|
||||
beatmap.OldValue?.Dispose();
|
||||
using (var oldBeatmap = beatmap.OldValue)
|
||||
if (oldBeatmap?.Track != null)
|
||||
oldBeatmap.Track.Completed -= currentTrackCompleted;
|
||||
|
||||
nextBeatmap?.LoadBeatmapAsync();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user