Issue 51: crash when poly nvp is change to smaller after first build.

This commit is contained in:
Mikko Mononen 2010-03-02 10:05:04 +00:00
parent 359f15b11c
commit ababd28f59

View File

@ -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;