diff options
| author | Wilhem Barbier <wilhem.b@free.fr> | 2019-05-22 20:27:19 +0200 |
|---|---|---|
| committer | Wilhem Barbier <wilhem.b@free.fr> | 2019-05-22 20:29:34 +0200 |
| commit | 13a1744ca980a9259f2767b7593c73683cd4e420 (patch) | |
| tree | 5201765ec62ae5cd7f4713caacbd82c3df71a60f /src | |
| parent | 978f3a9570988b7d6d4470c192cc06bade022625 (diff) | |
| download | raylib-13a1744ca980a9259f2767b7593c73683cd4e420.tar.gz raylib-13a1744ca980a9259f2767b7593c73683cd4e420.zip | |
Fix #848
Diffstat (limited to 'src')
| -rw-r--r-- | src/models.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |
