Move task out of ctor to avoid initialisation ordering issues

This commit is contained in:
Dean Herbert
2019-06-24 17:10:50 +09:00
parent 5f05b9ac0b
commit 1830362337
2 changed files with 20 additions and 16 deletions

View File

@ -293,6 +293,8 @@ namespace osu.Game
var nextBeatmap = beatmap.NewValue;
if (nextBeatmap?.Track != null)
nextBeatmap.Track.Completed += currentTrackCompleted;
nextBeatmap?.LoadBeatmapAsync();
}
private void currentTrackCompleted()