mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-12-01 19:20:56 +05:30
Fixed crash after getting textures list
This commit is contained in:
parent
24d4f920dc
commit
91103da410
@ -124,8 +124,8 @@ void unpacktextures(const char *filedata,
|
|||||||
filedata,
|
filedata,
|
||||||
filesize);
|
filesize);
|
||||||
struct Texture **textures = NULL;
|
struct Texture **textures = NULL;
|
||||||
textures = (struct Texture**)malloc(texturecount);
|
textures = (struct Texture**)malloc(
|
||||||
|
sizeof(struct Texture**) * texturecount);
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
unsigned int j;
|
unsigned int j;
|
||||||
// k is access to index of textures.
|
// k is access to index of textures.
|
||||||
|
Loading…
Reference in New Issue
Block a user