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:
authorBastien Montagne <montagne29@wanadoo.fr>2015-11-11 13:46:25 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-11-11 13:46:25 +0300
commita9df76b167eaedf0d624beaf3de205ef478e562b (patch)
tree6b036fbff27db7b045d4cd6b13daeac3059fb7cf /source/blender/blenkernel/intern/particle_system.c
parent69674f387569bddafc27227ba3e104a262301a44 (diff)
Fix (unreported) potential crash: ParticleSystem->part shall never be NULL.
Diffstat (limited to 'source/blender/blenkernel/intern/particle_system.c')
-rw-r--r--source/blender/blenkernel/intern/particle_system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c
index dc6249b6a15..80d077352bd 100644
--- a/source/blender/blenkernel/intern/particle_system.c
+++ b/source/blender/blenkernel/intern/particle_system.c
@@ -4216,7 +4216,7 @@ void BKE_particlesystem_id_loop(ParticleSystem *psys, ParticleSystemIDFunc func,
{
ParticleTarget *pt;
- func(psys, (ID **)&psys->part, userdata, IDWALK_NOP);
+ func(psys, (ID **)&psys->part, userdata, IDWALK_NEVER_NULL);
func(psys, (ID **)&psys->target_ob, userdata, IDWALK_NOP);
func(psys, (ID **)&psys->parent, userdata, IDWALK_NOP);