From bced3d66e601c6b724df12a6457222025199b9d0 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 6 Oct 2005 14:11:06 +0000 Subject: [PATCH] fix a very stupid bug in Mod_AllocSurfMesh that causes memory corruption git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5729 d7cf8633-e32d-0410-b094-e92efae38249 --- model_shared.c | 1 - 1 file changed, 1 deletion(-) diff --git a/model_shared.c b/model_shared.c index f896b784..c7743ae4 100644 --- a/model_shared.c +++ b/model_shared.c @@ -655,7 +655,6 @@ surfmesh_t *Mod_AllocSurfMesh(mempool_t *mempool, int numvertices, int numtriang } if (mesh->num_triangles) { - mesh->data_element3i = (int *)data, data += sizeof(int[3]) * mesh->num_triangles; mesh->data_element3i = (int *)data, data += sizeof(int[3]) * mesh->num_triangles; if (neighbors) mesh->data_neighbor3i = (int *)data, data += sizeof(int[3]) * mesh->num_triangles; -- 2.39.2