From 3a38c2c0676ac2dbf14303087bafa3da1489d34b Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Fri, 21 Sep 2018 19:43:19 +0200 Subject: [PATCH] Update MDLFileData.h Remove not supported array initialization. --- code/MDLFileData.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/code/MDLFileData.h b/code/MDLFileData.h index 831986f60..1215b2a80 100644 --- a/code/MDLFileData.h +++ b/code/MDLFileData.h @@ -717,10 +717,9 @@ struct GroupFrame */ struct IntFace_MDL7 { // provide a constructor for our own convenience - IntFace_MDL7() AI_NO_EXCEPT - : mIndices { 0 } - , iMatIndex{ 0 } { - // empty + IntFace_MDL7() AI_NO_EXCEPT { + ::memset( mIndices, 0, sizeof(uint32_t) *3); + ::memset( iMatIndex, 0, sizeof( unsigned int) *2); } //! Vertex indices @@ -739,9 +738,8 @@ struct IntFace_MDL7 { struct IntMaterial_MDL7 { // provide a constructor for our own convenience IntMaterial_MDL7() AI_NO_EXCEPT - : pcMat( nullptr ) - , iOldMatIndices{ 0 } { - // empty + : pcMat( nullptr ) { + ::memset( iOldMatIndices, 0, sizeof(unsigned int) *2); } //! Material instance