mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Fix possibly setting null track
This commit is contained in:
@ -321,15 +321,13 @@ namespace osu.Game.Overlays
|
||||
private void changeTrack()
|
||||
{
|
||||
CurrentTrack.Expire();
|
||||
CurrentTrack = null;
|
||||
CurrentTrack = new DrawableTrack(new TrackVirtual(1000));
|
||||
|
||||
if (current != null)
|
||||
{
|
||||
CurrentTrack = new DrawableTrack(current.GetRealTrack());
|
||||
CurrentTrack.Completed += () => onTrackCompleted(current);
|
||||
|
||||
AddInternal(CurrentTrack);
|
||||
}
|
||||
CurrentTrack.Completed += () => onTrackCompleted(current);
|
||||
AddInternal(CurrentTrack);
|
||||
}
|
||||
|
||||
private void onTrackCompleted(WorkingBeatmap workingBeatmap)
|
||||
|
Reference in New Issue
Block a user