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

#233: Replaced PackedByteArray with PackedInt32Array #250

Merged
merged 1 commit into from
Nov 18, 2023

Conversation

rds1983
Copy link
Contributor

@rds1983 rds1983 commented Nov 18, 2023

The #233 was caused by the fact that PackedByteArray was used to store regions' indices.
The code incremented actual index by 1.
Hence the 255th region had index 256 in the _region_map. However 256 overlows 8-bit, hence the bug occured.
I replaced PackedByteArray with PackedInt32Array, which solved the issue.

Fixes #233

@TokisanGames
Copy link
Owner

Excellent, thank you.

@TokisanGames TokisanGames merged commit bfebe94 into TokisanGames:main Nov 18, 2023
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.

Importing 256th region doesn't work
2 participants