fix for Issue 98
This commit is contained in:
parent
da0b4ab05e
commit
a87947cc3f
@ -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())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user