瀏覽代碼

Fixed: Initialize members in MDLFileData

Richard 10 年之前
父節點
當前提交
2f0786068d
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      code/MDLFileData.h

+ 5 - 0
code/MDLFileData.h

@@ -841,6 +841,9 @@ struct IntGroupInfo_MDL7
     IntGroupInfo_MDL7(BE_NCONST MDL::Group_MDL7* _pcGroup, unsigned int _iIndex)
         :   iIndex(_iIndex)
         ,   pcGroup(_pcGroup)
+        ,   pcGroupUVs()
+        ,   pcGroupTris()
+        ,   pcGroupVerts()
     {}
 
     //! Index of the group
@@ -896,6 +899,8 @@ struct IntSharedData_MDL7
 {
     //! Default constructor
     IntSharedData_MDL7()
+        : apcOutBones(),
+        iNum()
     {
         abNeedMaterials.reserve(10);
     }