]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
always allocate bspEntData
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Thu, 18 Jun 2009 08:38:25 +0000 (08:38 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Thu, 18 Jun 2009 08:38:25 +0000 (08:38 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@383 61c419a2-8eb2-4b30-bcec-8cead039b335

tools/quake3/q3map2/bspfile_abstract.c

index ed08b8cab74429af76922318667342f0f6ab3447..ef78160f737ad15bd9e35586f09f33aafd53f54e 100644 (file)
@@ -642,9 +642,11 @@ void UnparseEntities( void )
        
        
        /* setup */
+       AUTOEXPAND_BY_REALLOC(bspEntData, 0, allocatedBSPEntData, 1024);
        buf = bspEntData;
        end = buf;
        *end = 0;
+
        
        /* run through entity list */
        for( i = 0; i < numBSPEntities && i < numEntities; i++ )