bugfix: minor typo caused stack overrun when several vertices happen to fall exactly on cell boundaries

This commit is contained in:
axelrodR 2014-01-20 00:12:53 +02:00
parent 98f2f02c2b
commit b4204ba9a2

View File

@ -200,7 +200,7 @@ static void dividePoly(const float* in, int nbIn,
out1[m*3+1] = in[i*3+1]; out1[m*3+1] = in[i*3+1];
out1[m*3+2] = in[i*3+2]; out1[m*3+2] = in[i*3+2];
m++; m++;
if (d[0] != 0) // not on the line if (d[i] != 0) // not on the line
continue; continue;
} }