summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorwarzes <[email protected]>2021-10-17 18:22:58 +1000
committerGitHub <[email protected]>2021-10-17 10:22:58 +0200
commitd47d7c000146ed90a3270ba507e4769cf80c86af (patch)
tree1bcfcc24c8e4b6c4dede634d02cc8ed6eb845ebd /src
parentc87e91d27a8b7038cee6843566e0bf508caa9f5e (diff)
downloadraylib-d47d7c000146ed90a3270ba507e4769cf80c86af.tar.gz
raylib-d47d7c000146ed90a3270ba507e4769cf80c86af.zip
Fixing the error of loading VOX models. (#2065)
* - Fixing the error of loading VOX models. * - fixed spaces
Diffstat (limited to 'src')
-rw-r--r--src/external/vox_loader.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/external/vox_loader.h b/src/external/vox_loader.h
index e200e1eb..0eb5cafb 100644
--- a/src/external/vox_loader.h
+++ b/src/external/vox_loader.h
@@ -43,6 +43,7 @@ revision history:
Changed Vox_LoadFileName to Vox_LoadFromMemory
1.02 (2021-09-10) @raysan5: Reviewed some formating
1.03 (2021-10-02) @catmanl: Reduce warnings on gcc
+ 1.04 (2021-10-17) @warzes: Fixing the error of loading VOX models
*/
@@ -585,6 +586,9 @@ int Vox_LoadFromMemory(unsigned char* pvoxData, unsigned int voxDataSize, VoxArr
unsigned long chunkSize = *((unsigned long*)fileDataPtr);
fileDataPtr += sizeof(unsigned long);
+ //unsigned long chunkTotalChildSize = *((unsigned long*)fileDataPtr);
+ fileDataPtr += sizeof(unsigned long);
+
if (strcmp(szChunkName, "SIZE") == 0)
{
//(4 bytes x 3 : x, y, z )