Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

bdach
Copy link
Collaborator

@bdach bdach commented Jan 22, 2025

Closes #31615.

The conditional catches a bit more than just the crash case, it also catches the "only 1 combo colour" case (in which case colorhax just can't work, so might as well not show a colour anyway).

@smoogipoo smoogipoo merged commit 11e84f3 into ppy:master Jan 22, 2025
7 of 10 checks passed
@bdach bdach deleted the fix-new-combo-button-crash branch January 22, 2025 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

System.DivideByZeroException: Attempted to divide by zero.
2 participants