Skip to content

Conversation

@PeterN
Copy link
Member

@PeterN PeterN commented Nov 29, 2025

When creating an Action2Real, the length of the loaded_list is not validated. If this reaches more than 0x80, it will overlap the non-real Action2Var and Action2Random values used for type.

This change checks for any length >= 0x80 and raises an error if the list is too long.

@PeterN PeterN merged commit 6b266e3 into OpenTTD:master Nov 30, 2025
21 checks passed
@PeterN PeterN deleted the check-act2real-length branch November 30, 2025 09:11
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.

2 participants