Fix for issue 198.
This commit is contained in:
parent
0723805f96
commit
1a264a15cd
@ -1310,7 +1310,7 @@ bool rcMergePolyMeshes(rcContext* ctx, rcPolyMesh** meshes, const int nmeshes, r
|
|||||||
ctx->log(RC_LOG_ERROR, "rcMergePolyMeshes: Out of memory 'vremap' (%d).", maxVertsPerMesh);
|
ctx->log(RC_LOG_ERROR, "rcMergePolyMeshes: Out of memory 'vremap' (%d).", maxVertsPerMesh);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
memset(nextVert, 0, sizeof(int)*maxVerts);
|
memset(vremap, 0, sizeof(unsigned short)*maxVertsPerMesh);
|
||||||
|
|
||||||
for (int i = 0; i < nmeshes; ++i)
|
for (int i = 0; i < nmeshes; ++i)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user