浏览代码

Update MDLMaterialLoader.cpp

Kim Kulling 3 年之前
父节点
当前提交
5bce9e8ce5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/AssetLib/MDL/MDLMaterialLoader.cpp

+ 1 - 1
code/AssetLib/MDL/MDLMaterialLoader.cpp

@@ -448,6 +448,7 @@ void MDLImporter::ParseSkinLump_3DGS_MDL7(
         unsigned int iType,
         unsigned int iWidth,
         unsigned int iHeight) {
+    std::unique_ptr<aiTexture> pcNew;
     if (szCurrent == nullptr) {
         return;
     }
@@ -470,7 +471,6 @@ void MDLImporter::ParseSkinLump_3DGS_MDL7(
             return;
         }
         
-        std::unique_ptr<aiTexture> pcNew;
         pcNew.reset(new aiTexture);
         pcNew->mHeight = 0;
         pcNew->mWidth = iWidth;