]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/writebsp.c
try to eliminate MAX_MAP_PLANES limits
[xonotic/netradiant.git] / tools / quake3 / q3map2 / writebsp.c
index 96e8ce29340b048a328a76c946f1eb8868a3e508..c9f5f7312a4d88b5ce57add8c182dc68fe99eb9d 100644 (file)
@@ -116,6 +116,7 @@ void EmitPlanes( void )
        mp = mapplanes;
        for( i = 0; i < nummapplanes; i++, mp++ )
        {
+               AUTOEXPAND_BY_REALLOC_BSP(Planes, 1024);
                bp = &bspPlanes[ numBSPPlanes ];
                VectorCopy( mp->normal, bp->normal );
                bp->dist = mp->dist;