From f3333ed78754d3836d87cee3f0121bc2fa02c4df Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Thu, 23 Jan 2020 19:54:31 +0100 Subject: [PATCH] q3map2: zero the verts array on initialization, verts are tested to not be null in FindMetaVertex() --- tools/quake3/q3map2/tjunction.c | 2 ++ 1 file changed, 2 insertions(+) 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++ ) -- 2.39.2