1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 00:53:22 +08:00

Fix MusicController raising TrackChanged event twice

This commit is contained in:
Salman Ahmed 2020-09-04 09:45:24 +03:00
parent b631430a5b
commit 54013790fc

View File

@ -279,6 +279,10 @@ namespace osu.Game.Overlays
private void changeBeatmap(WorkingBeatmap newWorking) private void changeBeatmap(WorkingBeatmap newWorking)
{ {
// The provided beatmap is same as current, no need to do any changes.
if (newWorking == current)
return;
var lastWorking = current; var lastWorking = current;
TrackChangeDirection direction = TrackChangeDirection.None; TrackChangeDirection direction = TrackChangeDirection.None;