diff --git a/Recast/Source/RecastRasterization.cpp b/Recast/Source/RecastRasterization.cpp index f082438..e1b2bf3 100644 --- a/Recast/Source/RecastRasterization.cpp +++ b/Recast/Source/RecastRasterization.cpp @@ -200,7 +200,7 @@ static void dividePoly(const float* in, int nbIn, 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; }