mirror of
https://github.com/ppy/osu
synced 2025-01-11 16:49:39 +00:00
Merge pull request #1242 from peppy/maybefix
Ensure WorkingBeatmap's Track is never null
This commit is contained in:
commit
3f9b682759
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user