]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
fix crash in -bsp
authorRudolf Polzer <divverent@alientrap.org>
Mon, 13 Feb 2012 10:22:07 +0000 (11:22 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 13 Feb 2012 10:22:07 +0000 (11:22 +0100)
tools/quake3/q3map2/writebsp.c

index 106e618f23ae88158f8562106820783dca90bc78..5321d068e755d910ea042d058007239320ca6503 100644 (file)
@@ -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;