Update MDLMaterialLoader.cpp

pull/4609/head
Kim Kulling 2022-07-05 20:09:16 +02:00 committed by GitHub
parent a6b1a35748
commit 5bce9e8ce5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;