mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 04:32:55 +08:00
Possible null reference exception
This commit is contained in:
parent
067b572245
commit
9bdf462dd1
@ -185,9 +185,9 @@ namespace osu.Game.Overlays
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (current?.Track?.IsRunning ?? false)
|
if (current?.Track?.IsRunning ?? false)
|
||||||
current.Track.Stop();
|
current?.Track?.Stop();
|
||||||
else
|
else
|
||||||
current.Track.Start();
|
current?.Track?.Start();
|
||||||
},
|
},
|
||||||
Icon = FontAwesome.fa_play_circle_o,
|
Icon = FontAwesome.fa_play_circle_o,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user