diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-03-08 01:39:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-03-08 01:39:45 +0300 |
commit | 205ad1580c07161e501ad168556e169ac8078d50 (patch) | |
tree | cc1ffc23ae19bbdc0a94202caced665460ae25ed /source/blender/blenloader/intern | |
parent | ff2cf426219bf0b2d245156e81bffc6a703bb73e (diff) |
own missing null check
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 532e16b7489..ef3d5cd0680 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -3734,10 +3734,12 @@ static void lib_link_screen(FileData *fd, Main *main) else if(sl->spacetype==SPACE_SCRIPT) { SpaceScript *scpt= (SpaceScript *)sl; - /*sc->script = NULL; - 2.45 set to null, better re-run the script */ + /*scpt->script = NULL; - 2.45 set to null, better re-run the script */ if (scpt->script) { - scpt->script = newlibadr(fd, sc->id.lib, scpt->script); - SCRIPT_SET_NULL(scpt->script) + scpt->script= newlibadr(fd, sc->id.lib, scpt->script); + if (scpt->script) { + SCRIPT_SET_NULL(scpt->script) + } } } else if(sl->spacetype==SPACE_OOPS) { |