diff options
author | Ton Roosendaal <ton@blender.org> | 2005-11-19 20:26:18 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-11-19 20:26:18 +0300 |
commit | ce175d7b570cad6e2a24667ef6fc632a3acc1c58 (patch) | |
tree | d305073cd84380baee2a3abb740f903aef65d9ca /source/blender/blenloader | |
parent | 58edf6b40d3716dda9a4409e40855026b1075768 (diff) |
Missing pointer array check caused 64 bits not reading pointers OK in
scriptlinks. Thanks Ken Hughes for finding issue!
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index ede1c3be45c..fea9ac87480 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -1241,6 +1241,8 @@ static void lib_link_scriptlink(FileData *fd, ID *id, ScriptLink *slink) static void direct_link_scriptlink(FileData *fd, ScriptLink *slink) { slink->scripts= newdataadr(fd, slink->scripts); + test_pointer_array(fd, (void **)&slink->scripts); + slink->flag= newdataadr(fd, slink->flag); if(fd->flags & FD_FLAGS_SWITCH_ENDIAN) { |