Browse Source

Bugfix : Commit not saved changes.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1226 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
kimmi 13 years ago
parent
commit
71b8fa7cb5
2 changed files with 4 additions and 3 deletions
  1. 2 2
      include/assimp/cexport.h
  2. 2 1
      tools/assimp_cmd/ImageExtractor.cpp

+ 2 - 2
include/assimp/cexport.h

@@ -208,8 +208,8 @@ struct aiExportDataBlob
 
 
 private:
 private:
 	// no copying
 	// no copying
-	aiExportDataBlob(const aiExportDataBlob& ) {}
-	aiExportDataBlob& operator= (const aiExportDataBlob& ) {}
+	aiExportDataBlob(const aiExportDataBlob& );
+	aiExportDataBlob& operator= (const aiExportDataBlob& );
 #endif // __cplusplus
 #endif // __cplusplus
 };
 };
 
 

+ 2 - 1
tools/assimp_cmd/ImageExtractor.cpp

@@ -183,7 +183,8 @@ int SaveAsTGA (FILE* file, const aiTexel* data, unsigned int width, unsigned int
 		return 1;
 		return 1;
 	}
 	}
 
 
-	TGA_HEADER head = {0};
+	TGA_HEADER head;
+	memset(&head, 0, sizeof(head));
 	head.bits   = 32;
 	head.bits   = 32;
 	head.height = (uint16_t)height;
 	head.height = (uint16_t)height;
 	head.width  = (uint16_t)width;
 	head.width  = (uint16_t)width;