diff --git a/src/models.c b/src/models.c index 828ee8b34..cac137926 100644 --- a/src/models.c +++ b/src/models.c @@ -2654,7 +2654,7 @@ BoundingBox GetModelBoundingBox(Model model) int meshCount = model.meshCount; BoundingBox bounds = { 0 }; - if (meshCount < 1) + if (meshCount < 1 || model.meshes == NULL) { // No mesh to compute bounds from return bounds;