Skip to content

Commit

Permalink
[rmodels] Add parenthesis around conditionals in LoadGLTF
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebHeydon committed Dec 3, 2024
1 parent 390ce39 commit 8fd6b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rmodels.c
Original file line number Diff line number Diff line change
Expand Up @@ -5664,7 +5664,7 @@ static Model LoadGLTF(const char *fileName)
}

// Load primitive indices data (if provided)
if (mesh->primitives[p].indices != NULL && mesh->primitives[p].indices->buffer_view != NULL)
if ((mesh->primitives[p].indices != NULL) && (mesh->primitives[p].indices->buffer_view != NULL))
{
cgltf_accessor *attribute = mesh->primitives[p].indices;

Expand Down

0 comments on commit 8fd6b83

Please sign in to comment.