]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
q3map2: zero the verts array on initialization, verts are tested to not be null in...
authorThomas Debesse <dev@illwieckz.net>
Thu, 23 Jan 2020 18:54:31 +0000 (19:54 +0100)
committerThomas Debesse <dev@illwieckz.net>
Thu, 23 Jan 2020 20:46:36 +0000 (21:46 +0100)
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++ )