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;