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

Fix crash from new combo colour selector when there are no combo colours present

Closes https://github.com/ppy/osu/issues/31615.
This commit is contained in:
Bartłomiej Dach 2025-01-22 11:39:32 +01:00 committed by Dean Herbert
parent ea9cc4d44d
commit 7aceb2e349
No known key found for this signature in database

View File

@ -149,7 +149,7 @@ namespace osu.Game.Screens.Edit.Components.TernaryButtons
{
Enabled.Value = SelectedHitObject.Value != null;
if (SelectedHitObject.Value == null || SelectedHitObject.Value.ComboOffset == 0)
if (SelectedHitObject.Value == null || SelectedHitObject.Value.ComboOffset == 0 || ComboColours.Count <= 1)
{
BackgroundColour = colourProvider.Background3;
icon.Colour = BackgroundColour.Darken(0.5f);