MDLImporter: remove dead code.
authorKim Kulling <kim.kulling@googlemail.com>
Wed, 24 May 2017 19:18:51 +0000 (21:18 +0200)
committerKim Kulling <kim.kulling@googlemail.com>
Wed, 24 May 2017 19:18:51 +0000 (21:18 +0200)
code/MDLMaterialLoader.cpp

index 77ce3b3..91dcb49 100644 (file)
@@ -546,10 +546,6 @@ void MDLImporter::ParseSkinLump_3DGS_MDL7(
     }
     else if (iMasked || !iType || (iType && iWidth && iHeight))
     {
-        // ***** STANDARD COLOR TEXTURE *****
-        if(pcNew!= nullptr)
-            delete pcNew;
-
         pcNew = new aiTexture();
         if (!iHeight || !iWidth)
         {