fix for Issue 98

This commit is contained in:
Mikko Mononen 2010-07-11 10:18:44 +00:00
parent da0b4ab05e
commit a87947cc3f

View File

@ -1088,7 +1088,7 @@ bool rcBuildPolyMeshDetail(const rcPolyMesh& mesh, const rcCompactHeightfield& c
while (dmesh.nverts+nverts > vcap) while (dmesh.nverts+nverts > vcap)
vcap += 256; vcap += 256;
float* newv = (float*)rcAlloc(vcap*3, RC_ALLOC_PERM); float* newv = (float*)rcAlloc(sizeof(float)*vcap*3, RC_ALLOC_PERM);
if (!newv) if (!newv)
{ {
if (rcGetLog()) if (rcGetLog())