fix for issues 48 and 49.

This commit is contained in:
Mikko Mononen
2010-02-20 17:53:04 +00:00
parent e51b31dab4
commit dbf95000e6
2 changed files with 4 additions and 3 deletions

View File

@@ -1075,6 +1075,7 @@ bool rcBuildPolyMesh(rcContourSet& cset, int nvp, rcPolyMesh& mesh)
rcGetLog()->log(RC_LOG_ERROR, "rcBuildPolyMesh: Out of memory 'mesh.flags' (%d).", mesh.npolys);
return false;
}
memset(mesh.flags, 0, sizeof(unsigned short) * mesh.npolys);
rcTimeVal endTime = rcGetPerformanceTimer();