[#18277] Segfault crash by editing mesh with subsurf+ParticleInstance modifiers
[blender.git] / source / blender / blenkernel / intern / modifier.c
index 566a139f72c406f8f7dd61c337f640ad67a6e61c..b3892a515af70629931003f90de1ba418cb5c9fa 100644 (file)
@@ -6382,6 +6382,7 @@ static DerivedMesh * particleInstanceModifier_applyModifier(
        if(psys->flag & (PSYS_HAIR_DONE|PSYS_KEYED)){
 
                float min_r[3], max_r[3];
+               INIT_MINMAX(min_r, max_r);
                dm->getMinMax(dm, min_r, max_r);                
                min_co=min_r[track];
                max_co=max_r[track];