Explorar o código

Update MDLFileData.h

Remove not supported array initialization.
Kim Kulling %!s(int64=7) %!d(string=hai) anos
pai
achega
3a38c2c067
Modificáronse 1 ficheiros con 5 adicións e 7 borrados
  1. 5 7
      code/MDLFileData.h

+ 5 - 7
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