-
Notifications
You must be signed in to change notification settings - Fork 3
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
TerrainChunkMesh is initialized incorrectly #4
Comments
Corrected Cube() function:
|
But oh well, the terrain doesn't work anyway: a few configuration values are missing, and the program crashes when it happens (it would be nice if there was defaults), and after that is fixed, it doesn't find |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Existing code, producing IndexOutOfBoundsException:
Correct code, first possibility:
Correct code, second possibility:
The function Cube() and NDCQuad2Drot180() in that class have the same issue.
Why? Indices, that are not part of the ArrayList, must not be accessed, before there is a value at that index in the list.
The text was updated successfully, but these errors were encountered: