1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 09:42:54 +08:00

Fix nullref

This commit is contained in:
Dean Herbert 2019-01-22 13:18:01 +09:00
parent cebeb0a219
commit c58fe4f4ff

View File

@ -68,11 +68,10 @@ namespace osu.Game.Screens.Play.PlayerSettings
var clockRate = AdjustableClock.Rate; var clockRate = AdjustableClock.Rate;
sliderbar.Bindable.BindValueChanged(multiplier => // can't trigger this line instantly as the underlying clock may not be ready to accept adjustments yet.
{ sliderbar.Bindable.ValueChanged += multiplier => AdjustableClock.Rate = clockRate * multiplier;
multiplierText.Text = $"{multiplier:0.0}x";
AdjustableClock.Rate = clockRate * multiplier; sliderbar.Bindable.BindValueChanged(multiplier => multiplierText.Text = $"{multiplier:0.0}x", true);
}, true);
} }
} }
} }