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:
parent
8f4916ad2d
commit
6d3d7c5d95
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user