1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-17 06:32:36 +08:00

Fix random sound effect not playing correctly

This commit is contained in:
Dean Herbert
2025-06-30 16:09:23 +09:00
Unverified
parent 768d44596a
commit 9155f566ec
+3 -1
View File
@@ -667,7 +667,9 @@ namespace osu.Game.Screens.SelectV2
return false;
}
Scheduler.Add(() =>
// CurrentSelectionItem won't be valid until UpdaterAfterChildren.
// We probably want to fix this at some point since a few places are working-around this quirk.
ScheduleAfterChildren(() =>
{
if (selectionBefore != null && CurrentSelectionItem != null)
playSpinSample(distanceBetween(selectionBefore, CurrentSelectionItem), carouselItems.Count);