git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1852
d7cf8633-e32d-0410-b094-
e92efae38249
if (s->mesh->numtriangles > 1000)
{
vertexremap = Mem_Alloc(tempmempool, s->mesh->numverts * sizeof(int));
- memset(vertexremap, -1, s->mesh->numverts * sizeof(int));
base = 0;
oldmesh = NULL;
firstmesh = NULL;
base += tricount;
newvertexcount = 0;
+ memset(vertexremap, -1, s->mesh->numverts * sizeof(int));
for (j = 0;j < tricount * 3;j++)
if (vertexremap[index[j]] < 0)
vertexremap[index[j]] = newvertexcount++;