Bugfix : Commit not saved changes.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1226 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/5/head
kimmi 2012-03-20 22:41:39 +00:00
parent 6c1cb4f159
commit 71b8fa7cb5
2 changed files with 4 additions and 3 deletions

View File

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

View File

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