Another bug found thanks to Coverity.
authorKent Mein <mein@cs.umn.edu>
Tue, 5 Jun 2007 15:11:39 +0000 (15:11 +0000)
committerKent Mein <mein@cs.umn.edu>
Tue, 5 Jun 2007 15:11:39 +0000 (15:11 +0000)
typo was indexing past last element in an array.

Kent

source/blender/python/api2_2x/Noise.c

index 821c541b4acad53b1727c2e1ad6da05d9aebd508..5253ea810b0ccda7245e3b9cad83ef250676799d 100644 (file)
@@ -434,7 +434,7 @@ static PyObject *Noise_voronoi( PyObject * self, PyObject * args )
                              da[0], da[1], da[2], da[3],
                              pa[0], pa[1], pa[2],
                              pa[3], pa[4], pa[5],
-                             pa[6], pa[7], pa[8], pa[9], pa[10], pa[12] );
+                             pa[6], pa[7], pa[8], pa[9], pa[10], pa[11] );
 }
 
 /*-------------------------------------------------------------------------*/