1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 00:13:19 +08:00

Remove unnecessary use of local

This commit is contained in:
iiSaLMaN 2019-11-11 11:57:14 +03:00
parent 8f4916ad2d
commit 6d3d7c5d95

View File

@ -48,11 +48,8 @@ namespace osu.Game.Audio
track.Started += () => Schedule(() =>
{
// Assign the new track to current before stopping last track to avoid assigning null to current.
var last = current;
current?.Stop();
current = track;
last?.Stop();
audio.Tracks.AddAdjustment(AdjustableProperty.Volume, muteBindable);
});