From ababd28f5981aa00d346cf3792b58d01ccaa3afd Mon Sep 17 00:00:00 2001 From: Mikko Mononen Date: Tue, 2 Mar 2010 10:05:04 +0000 Subject: [PATCH] Issue 51: crash when poly nvp is change to smaller after first build. --- Recast/Source/RecastMesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Recast/Source/RecastMesh.cpp b/Recast/Source/RecastMesh.cpp index e1fc80e..f364dba 100644 --- a/Recast/Source/RecastMesh.cpp +++ b/Recast/Source/RecastMesh.cpp @@ -485,7 +485,7 @@ static void pushBack(int v, int* arr, int& an) static bool removeVertex(rcPolyMesh& mesh, const unsigned short rem, const int maxTris) { - static const int nvp = mesh.nvp; + const int nvp = mesh.nvp; // Count number of polygons to remove. int nrem = 0;