Merge pull request #14 from axelrodR/master

Bugfix: A typo in dividePoly can cause stack overrun when several vertices happen to fall exactly on cell boundaries
This commit is contained in:
Mikko Mononen 2014-01-19 22:13:44 -08:00
commit cbab6a3825

View File

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