Fix DummyWorkingBeatmap's track completion attempting to change game-wide beatmap

This commit is contained in:
Dean Herbert
2020-03-04 16:35:45 +09:00
parent a3194b3fec
commit 7464a486d9

View File

@ -428,11 +428,17 @@ namespace osu.Game
}
}
private void currentTrackCompleted() => Schedule(() =>
private void currentTrackCompleted()
{
if (!Beatmap.Value.Track.Looping && !Beatmap.Disabled)
musicController.NextTrack();
});
if (Beatmap.Value is DummyWorkingBeatmap)
return;
Schedule(() =>
{
if (Beatmap.Value.Track.Looping && !Beatmap.Disabled)
musicController.NextTrack();
});
}
#endregion