Bugfix : Commit not saved changes.

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

View File

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