From: Thomas Debesse Date: Thu, 23 Jan 2020 18:54:31 +0000 (+0100) Subject: q3map2: zero the verts array on initialization, verts are tested to not be null in... X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=commitdiff_plain;h=f3333ed78754d3836d87cee3f0121bc2fa02c4df;ds=sidebyside q3map2: zero the verts array on initialization, verts are tested to not be null in FindMetaVertex() --- diff --git a/tools/quake3/q3map2/tjunction.c b/tools/quake3/q3map2/tjunction.c index 1929e3e8..f62ad047 100644 --- a/tools/quake3/q3map2/tjunction.c +++ b/tools/quake3/q3map2/tjunction.c @@ -335,6 +335,8 @@ void FixSurfaceJunctions( mapDrawSurface_t *ds ) { float start, end, frac, c; vec3_t delta; + // zero the verts array, verts are tested to not be null in FindMetaVertex() + memset( verts, 0, sizeof( verts ) ); numVerts = 0; for ( i = 0 ; i < ds->numVerts ; i++ )