Skip to content

Commit

Permalink
Update rmodels.c
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Mar 7, 2024
1 parent 93a828f commit 3060408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rmodels.c
Original file line number Diff line number Diff line change
Expand Up @@ -5666,7 +5666,7 @@ static Model LoadVOX(const char *fileName)

// Copy indices
size = voxarray.indices.used*sizeof(unsigned short);
pmesh->indices = (float *)RL_MALLOC(size);
pmesh->indices = (unsigned short *)RL_MALLOC(size);
memcpy(pmesh->indices, pindices, size);

pmesh->triangleCount = (pmesh->vertexCount/4)*2;
Expand Down

0 comments on commit 3060408

Please sign in to comment.