diff options
author | Jacques Lucke <jacques@blender.org> | 2022-09-09 13:36:51 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-09-09 13:37:02 +0300 |
commit | fa0f18b37d1154dcb3c1d3fcc9075f68f79c8631 (patch) | |
tree | b0e9fbfa7d0a547bd670ee732a687b744bfd081f /source/blender/blenloader | |
parent | 0817966f14fed0bdc062d8c6bf5034f934b24f14 (diff) |
Cleanup: readfile: use correct type
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index c5cf80fe635..506595fd6fe 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -3066,8 +3066,8 @@ static BHead *read_data_into_datamap(FileData *fd, BHead *bhead, const char *all * This is kept disabled as the #malloc for the text always leaks memory. */ #if 0 { - const short *sp = fd->filesdna->structs[bhead->SDNAnr]; - allocname = fd->filesdna->types[sp[0]]; + SDNA_Struct *sp = fd->filesdna->structs[bhead->SDNAnr]; + allocname = fd->filesdna->types[sp->type]; size_t allocname_size = strlen(allocname) + 1; char *allocname_buf = malloc(allocname_size); memcpy(allocname_buf, allocname, allocname_size); |