mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Merge branch 'master' into fix-breadcrumb-tab-item-click-area
This commit is contained in:
@ -114,8 +114,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
get => current;
|
||||
set
|
||||
{
|
||||
if (value == null)
|
||||
throw new ArgumentNullException(nameof(value));
|
||||
ArgumentNullException.ThrowIfNull(value);
|
||||
|
||||
current.UnbindBindings();
|
||||
current.BindTo(value);
|
||||
|
@ -277,7 +277,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
var samples = sampleMap[feedbackSampleType];
|
||||
|
||||
if (samples == null || samples.Length == 0)
|
||||
if (samples.Length == 0)
|
||||
return null;
|
||||
|
||||
return samples[RNG.Next(0, samples.Length)]?.GetChannel();
|
||||
|
Reference in New Issue
Block a user