mirror of
https://github.com/ppy/osu.git
synced 2025-02-06 08:52:55 +08:00
Remove impossible null case (DummyWorkingBeatmap)
This commit is contained in:
parent
bfa20abd88
commit
87ce1e3558
@ -318,12 +318,9 @@ namespace osu.Game.Overlays
|
|||||||
private void changeTrack()
|
private void changeTrack()
|
||||||
{
|
{
|
||||||
CurrentTrack.Expire();
|
CurrentTrack.Expire();
|
||||||
CurrentTrack = new DrawableTrack(new TrackVirtual(1000));
|
|
||||||
|
|
||||||
if (current != null)
|
|
||||||
CurrentTrack = new DrawableTrack(current.GetTrack());
|
CurrentTrack = new DrawableTrack(current.GetTrack());
|
||||||
|
|
||||||
CurrentTrack.Completed += () => onTrackCompleted(current);
|
CurrentTrack.Completed += () => onTrackCompleted(current);
|
||||||
|
|
||||||
AddInternal(CurrentTrack);
|
AddInternal(CurrentTrack);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user