diff options
Diffstat (limited to 'source/blender/src/writeimage.c')
-rw-r--r-- | source/blender/src/writeimage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/writeimage.c b/source/blender/src/writeimage.c index a1578bd0dec..8e3abd06a72 100644 --- a/source/blender/src/writeimage.c +++ b/source/blender/src/writeimage.c @@ -66,7 +66,7 @@ void BIF_save_envmap(EnvMap *env, char *str) int dx; /* all interactive stuff is handled in buttons.c */ - if(env->cube[0]->ibuf==NULL) return; + if(env->cube[0]==NULL || env->cube[0]->ibuf==NULL) return; dx= env->cube[0]->ibuf->x; ibuf= IMB_allocImBuf(3*dx, 2*dx, 24, IB_rect, 0); |