From: Cloudwalk Date: Wed, 21 Jul 2021 18:44:16 +0000 (-0400) Subject: cl_main: Destroy mesh entities on restart to fix memlist getting cluttered X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ca03733fba98709e25d9a02882ac947f4144af6a;p=xonotic%2Fdarkplaces.git cl_main: Destroy mesh entities on restart to fix memlist getting cluttered --- diff --git a/cl_main.c b/cl_main.c index 4471edd3..6d46bc77 100644 --- a/cl_main.c +++ b/cl_main.c @@ -2493,6 +2493,7 @@ static void CL_MeshEntities_Restart(void) for (i = 0; i < NUM_MESHENTITIES; i++) { ent = cl_meshentities + i; + Mod_Mesh_Destroy(ent->render.model); Mod_Mesh_Create(ent->render.model, cl_meshentitynames[i]); } }