From 30604080ef15b5201083f0828b868f7580ff05b5 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 7 Mar 2024 12:33:45 +0100 Subject: [PATCH] Update rmodels.c --- src/rmodels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rmodels.c b/src/rmodels.c index 29b05ce32..c50c065e7 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -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;