From f8bfc8d1dfd29781a1e71a0943144363d96a1246 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 13 Feb 2012 11:22:07 +0100 Subject: [PATCH] fix crash in -bsp --- tools/quake3/q3map2/writebsp.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.2