1
0
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:
iiSaLMaN 2019-11-10 23:53:31 +03:00
parent 9a00898c0d
commit 8f4916ad2d

View File

@ -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();