1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-24 21:02:56 +08:00

Merge pull request #31616 from bdach/fix-new-combo-button-crash

Fix crash from new combo colour selector when there are no combo colours present
This commit is contained in:
Dan Balasescu 2025-01-22 20:48:02 +09:00 committed by GitHub
commit 11e84f325c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);