From: Rudolf Polzer Date: Mon, 13 Feb 2012 10:22:07 +0000 (+0100) Subject: fix crash in -bsp X-Git-Tag: xonotic-v0.6.0~14^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f8bfc8d1dfd29781a1e71a0943144363d96a1246;p=xonotic%2Fnetradiant.git fix crash in -bsp --- diff --git a/tools/quake3/q3map2/writebsp.c b/tools/quake3/q3map2/writebsp.c index 106e618f..5321d068 100644 --- a/tools/quake3/q3map2/writebsp.c +++ b/tools/quake3/q3map2/writebsp.c @@ -388,6 +388,7 @@ void BeginBSPFile( void ) /* ydnar: gs mods: set the first 6 drawindexes to 0 1 2 2 1 3 for triangles and quads */ numBSPDrawIndexes = 6; + AUTOEXPAND_BY_REALLOC_BSP(DrawIndexes, 1024); bspDrawIndexes[ 0 ] = 0; bspDrawIndexes[ 1 ] = 1; bspDrawIndexes[ 2 ] = 2;