Merge pull request #1242 from peppy/maybefix

Ensure WorkingBeatmap's Track is never null
This commit is contained in:
Dan Balasescu 2017-09-11 18:32:16 +09:00 committed by GitHub
commit 3f9b682759

View File

@ -87,7 +87,9 @@ namespace osu.Game.Beatmaps
{
if (track != null) return track;
track = GetTrack();
// we want to ensure that we always have a track, even if it's a fake one.
track = GetTrack() ?? new TrackVirtual();
applyRateAdjustments();
return track;
}