From b4204ba9a20a8f13ff222ef74ab7b8ef5b3b1184 Mon Sep 17 00:00:00 2001 From: axelrodR Date: Mon, 20 Jan 2014 00:12:53 +0200 Subject: [PATCH] bugfix: minor typo caused stack overrun when several vertices happen to fall exactly on cell boundaries --- Recast/Source/RecastRasterization.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }