1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-29 00:32:57 +08:00

Fix null check only covering one of two calls

This commit is contained in:
Dean Herbert 2022-06-01 18:03:03 +09:00
parent 6042cf1a3b
commit 0472881078

View File

@ -278,11 +278,15 @@ namespace osu.Game.Screens.Edit.Timing
using (BeginDelayedSequence(beatLength / 2)) using (BeginDelayedSequence(beatLength / 2))
{ {
stick.FlashColour(overlayColourProvider.Content1, beatLength, Easing.OutQuint); stick.FlashColour(overlayColourProvider.Content1, beatLength, Easing.OutQuint);
Schedule(() =>
if (clunk != null)
{ {
clunk.Frequency.Value = RNG.NextDouble(0.98f, 1.02f); Schedule(() =>
clunk?.Play(); {
}); clunk.Frequency.Value = RNG.NextDouble(0.98f, 1.02f);
clunk.Play();
});
}
} }
} }
} }