]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/convert_map.c
fix decompiling crash
[xonotic/netradiant.git] / tools / quake3 / q3map2 / convert_map.c
index 8e1a143ed6f8acf760be8c512d3d0c744802d24e..03933a54175fcef6b1905047af18f7ac11603017 100644 (file)
@@ -477,6 +477,7 @@ static void ConvertModel( FILE *f, bspModel_t *model, int modelNum, vec3_t origi
        
        /* convert bsp planes to map planes */
        nummapplanes = numBSPPlanes;
+       AUTOEXPAND_BY_REALLOC(mapplanes, nummapplanes, allocatedmapplanes, 1024);
        for( i = 0; i < numBSPPlanes; i++ )
        {
                VectorCopy( bspPlanes[ i ].normal, mapplanes[ i ].normal );