mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:42:56 +08:00
Fix nullref
This commit is contained in:
parent
cebeb0a219
commit
c58fe4f4ff
@ -68,11 +68,10 @@ namespace osu.Game.Screens.Play.PlayerSettings
|
||||
|
||||
var clockRate = AdjustableClock.Rate;
|
||||
|
||||
sliderbar.Bindable.BindValueChanged(multiplier =>
|
||||
{
|
||||
multiplierText.Text = $"{multiplier:0.0}x";
|
||||
AdjustableClock.Rate = clockRate * multiplier;
|
||||
}, true);
|
||||
// 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;
|
||||
|
||||
sliderbar.Bindable.BindValueChanged(multiplier => multiplierText.Text = $"{multiplier:0.0}x", true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user