From: divverent Date: Sat, 4 Apr 2009 21:13:45 +0000 (+0000) Subject: fix decompiling crash X-Git-Tag: svn-r421~175 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=053a016f5cc172ecd72edf3c06197378a5537429;p=xonotic%2Fnetradiant.git fix decompiling crash git-svn-id: svn://svn.icculus.org/netradiant/trunk@245 61c419a2-8eb2-4b30-bcec-8cead039b335 --- diff --git a/tools/quake3/q3map2/convert_map.c b/tools/quake3/q3map2/convert_map.c index 8e1a143e..03933a54 100644 --- a/tools/quake3/q3map2/convert_map.c +++ b/tools/quake3/q3map2/convert_map.c @@ -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 );