mirror of https://github.com/ppy/osu
Fix possible nullref in MusicController (#6379)
Fix possible nullref in MusicController
This commit is contained in:
commit
0dd12990c4
|
@ -75,7 +75,7 @@ public void ChangeBeatmapSetPosition(BeatmapSetInfo beatmapSetInfo, int index)
|
|||
/// <summary>
|
||||
/// Returns whether the current beatmap track is playing.
|
||||
/// </summary>
|
||||
public bool IsPlaying => beatmap.Value?.Track.IsRunning ?? false;
|
||||
public bool IsPlaying => current?.Track.IsRunning ?? false;
|
||||
|
||||
private void handleBeatmapAdded(BeatmapSetInfo set) =>
|
||||
Schedule(() => beatmapSets.Add(set));
|
||||
|
|
Loading…
Reference in New Issue