From 13a1744ca980a9259f2767b7593c73683cd4e420 Mon Sep 17 00:00:00 2001 From: Wilhem Barbier Date: Wed, 22 May 2019 20:27:19 +0200 Subject: [PATCH] Fix #848 --- src/models.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models.c b/src/models.c index 9dddb757..a33edfd3 100644 --- a/src/models.c +++ b/src/models.c @@ -3044,7 +3044,7 @@ static Model LoadIQM(const char *fileName) fread(imesh, sizeof(IQMMesh)*iqm.num_meshes, 1, iqmFile); model.meshCount = iqm.num_meshes; - model.meshes = RL_MALLOC(model.meshCount*sizeof(Mesh)); + model.meshes = RL_CALLOC(model.meshCount, sizeof(Mesh)); char name[MESH_NAME_LENGTH];