Prechádzať zdrojové kódy

Merge pull request #849 from wbrbr/master

Fix unitialized struct member bug (#848)
Ray 6 rokov pred
rodič
commit
5e8ffec0f6
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/models.c

+ 1 - 1
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];