Update rmodels.c

This commit is contained in:
Ray 2024-03-07 12:33:45 +01:00
parent 93a828f744
commit 30604080ef

View File

@ -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;