Add meshes pointer check (thanks 630Studios!)
This commit is contained in:
parent
a8329d90bb
commit
42fa79bcd8
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user