mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 09:03:50 +09:00
Merge pull request #1242 from peppy/maybefix
Ensure WorkingBeatmap's Track is never null
This commit is contained in:
@ -87,7 +87,9 @@ namespace osu.Game.Beatmaps
|
|||||||
{
|
{
|
||||||
if (track != null) return track;
|
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();
|
applyRateAdjustments();
|
||||||
return track;
|
return track;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user