]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/tjunction.c
q3map2: zero the verts array on initialization, verts are tested to not be null in...
[xonotic/netradiant.git] / tools / quake3 / q3map2 / tjunction.c
index 1929e3e8b229ee3c09b5104517578374b7b5665b..f62ad047b8af9ea80bac94d9a27ad415c0a8f983 100644 (file)
@@ -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++ )