|
@@ -448,7 +448,9 @@ void MDLImporter::ParseSkinLump_3DGS_MDL7(
|
|
unsigned int iType,
|
|
unsigned int iType,
|
|
unsigned int iWidth,
|
|
unsigned int iWidth,
|
|
unsigned int iHeight) {
|
|
unsigned int iHeight) {
|
|
- std::unique_ptr<aiTexture> pcNew;
|
|
|
|
|
|
+ if (szCurrent == nullptr) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
|
|
// get the type of the skin
|
|
// get the type of the skin
|
|
unsigned int iMasked = (unsigned int)(iType & 0xF);
|
|
unsigned int iMasked = (unsigned int)(iType & 0xF);
|
|
@@ -468,6 +470,7 @@ void MDLImporter::ParseSkinLump_3DGS_MDL7(
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ std::unique_ptr<aiTexture> pcNew;
|
|
pcNew.reset(new aiTexture);
|
|
pcNew.reset(new aiTexture);
|
|
pcNew->mHeight = 0;
|
|
pcNew->mHeight = 0;
|
|
pcNew->mWidth = iWidth;
|
|
pcNew->mWidth = iWidth;
|