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: Properly check number of varaction2 ranges #352

Merged
merged 1 commit into from
Jan 4, 2025

Conversation

glx22
Copy link
Contributor

@glx22 glx22 commented Jan 4, 2025

If a switch has more than 255 ranges, nmlc will trigger this assert.
Check earlier to report the error to the user in a more useful way.

@andythenorth
Copy link
Contributor

Works for me in testing. Can't approve but works.

@glx22 glx22 force-pushed the varaction2_ranges branch from 8408ee5 to a976a2b Compare January 4, 2025 17:41
@glx22 glx22 merged commit 028cef0 into OpenTTD:master Jan 4, 2025
21 checks passed
@glx22 glx22 deleted the varaction2_ranges branch January 4, 2025 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants