From 8fd6b8365f22f42800b6b174246bac38c6287896 Mon Sep 17 00:00:00 2001 From: Caleb Heydon Date: Tue, 3 Dec 2024 12:01:43 -0500 Subject: [PATCH] [rmodels] Add parenthesis around conditionals in LoadGLTF --- src/rmodels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rmodels.c b/src/rmodels.c index 8e85f734d..e4a024ac5 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -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;