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: stale NewGRF entries not removed from NewGRF lookup table #77

Merged
merged 1 commit into from Nov 3, 2021

Conversation

TrueBrain
Copy link
Member

@TrueBrain TrueBrain commented Nov 3, 2021

Fixes #76

The field "grfid" in a NewGRF should be an integer. The expire event
sends it as string, but didn't convert it back to an integer. In result,
the expire routine failed to remove NewGRFs from the lookup table.

This means the table only grew, until the instance was reset again.

The field "grfid" in a NewGRF should be an integer. The expire event
sends it as string, but didn't convert it back to an integer. In result,
the expire routine failed to remove NewGRFs from the lookup table.

This means the table only grew, until the instance was reset again.
@TrueBrain TrueBrain merged commit 77dd8fc into OpenTTD:main Nov 3, 2021
@TrueBrain TrueBrain deleted the fix-newgrf-expire branch November 3, 2021 20:41
@TrueBrain TrueBrain changed the title Fix: old NewGRF entries were not removed from NewGRF lookup table Fix: stale NewGRF entries not removed from NewGRF lookup table Nov 3, 2021
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.

Duplicated data in GC_LISTING packet
2 participants