]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
fix decompiling crash
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Sat, 4 Apr 2009 21:13:45 +0000 (21:13 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Sat, 4 Apr 2009 21:13:45 +0000 (21:13 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@245 61c419a2-8eb2-4b30-bcec-8cead039b335

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 );