Skip to content

Commit

Permalink
fix(Mesh): broken bounds check for getVertex
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Jan 4, 2024
1 parent 9a2d99c commit ff71049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mesh.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ZkSize ZkMesh_getVertexCount(ZkMesh const* slf) {
ZkVertex ZkMesh_getVertex(ZkMesh const* slf, ZkSize i) {
ZKC_TRACE_FN();
ZKC_CHECK_NULL(slf);
ZKC_CHECK_LEN(slf->vertices, i);
ZKC_CHECK_LEN(slf->features, i);
return slf->features[i];
}

Expand Down

0 comments on commit ff71049

Please sign in to comment.