mirror of
https://github.com/ppy/osu.git
synced 2024-09-22 05:27:23 +08:00
Add inline comment
This commit is contained in:
parent
9a00898c0d
commit
8f4916ad2d
@ -48,6 +48,7 @@ namespace osu.Game.Audio
|
|||||||
|
|
||||||
track.Started += () => Schedule(() =>
|
track.Started += () => Schedule(() =>
|
||||||
{
|
{
|
||||||
|
// Assign the new track to current before stopping last track to avoid assigning null to current.
|
||||||
var last = current;
|
var last = current;
|
||||||
current = track;
|
current = track;
|
||||||
last?.Stop();
|
last?.Stop();
|
||||||
|
Loading…
Reference in New Issue
Block a user