Tile.cpp registered_tiles array bounds indexing out of range #29
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I did a build of ReCaveGame with addition compiler flags of -g -fsanitize=address -fno-omit-frame-pointer
This highlighted the following issues:
I can fix this with changing line 6 of Tiles.cpp from:
To:
But not sure if that is the fix you want.
I'm surprised I didn't catch that. He made the array size max uint16 since that's how many tiles the game supports right now. Must have forgot the array size needs to be one larger for it to allocate all the elements.
I'll go ahead and throw this in right now
e2e6918c3b
Tested and working. Thank you.