Fixed crash after getting textures list

This commit is contained in:
_ 2018-04-04 22:05:13 -07:00
parent 24d4f920dc
commit 91103da410

View File

@ -124,8 +124,8 @@ void unpacktextures(const char *filedata,
filedata,
filesize);
struct Texture **textures = NULL;
textures = (struct Texture**)malloc(texturecount);
textures = (struct Texture**)malloc(
sizeof(struct Texture**) * texturecount);
unsigned int i;
unsigned int j;
// k is access to index of textures.