From 47a5b7abded28e1422b1cabb5d74f9b6e34ef053 Mon Sep 17 00:00:00 2001 From: Jan Date: Mon, 21 Oct 2019 16:59:18 +0200 Subject: [PATCH] Add arraysize to pointers of XModel struct to better signalize the size --- src/ZoneCommon/Game/T6/T6_Assets.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ZoneCommon/Game/T6/T6_Assets.h b/src/ZoneCommon/Game/T6/T6_Assets.h index 8800628e..039749d2 100644 --- a/src/ZoneCommon/Game/T6/T6_Assets.h +++ b/src/ZoneCommon/Game/T6/T6_Assets.h @@ -512,8 +512,8 @@ struct XModel char lodRampType; unsigned __int16 *boneNames; char *parentList; - __int16 *quats; - float *trans; + __int16 (*quats)[4]; + float (*trans)[4]; char *partClassification; DObjAnimMat *baseMat; XSurface *surfs; @@ -2439,7 +2439,7 @@ struct __declspec(align(16)) XSurface unsigned __int16 vertCount; unsigned __int16 triCount; unsigned __int16 baseVertIndex; - unsigned __int16 *triIndices; + unsigned __int16 (*triIndices)[3]; XSurfaceVertexInfo vertInfo; GfxPackedVertex *verts0; ID3D11Buffer *vb0;