Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-05-11 13:53:46 +0400
committerTon Roosendaal <ton@blender.org>2006-05-11 13:53:46 +0400
commit7bb1c768d1c7d546f1812a33ffaf0f40620046c7 (patch)
tree247833e53f1b0492b06d847731d1723db6d2f67c /source/blender/src/writeimage.c
parent0fae2e53e988c0b80f5a20792272fbfecc0483c9 (diff)
Added extra pointer check in "save envmap", which can crash when using
the option without rendered envmap. Fixes bug #4166
Diffstat (limited to 'source/blender/src/writeimage.c')
-rw-r--r--source/blender/src/writeimage.c2
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);