From: divverent Date: Thu, 18 Jun 2009 08:38:25 +0000 (+0000) Subject: always allocate bspEntData X-Git-Tag: svn-r421~37 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d89df783c3743abdaa924836b1deb1644ea5ca9c;p=xonotic%2Fnetradiant.git always allocate bspEntData git-svn-id: svn://svn.icculus.org/netradiant/trunk@383 61c419a2-8eb2-4b30-bcec-8cead039b335 --- diff --git a/tools/quake3/q3map2/bspfile_abstract.c b/tools/quake3/q3map2/bspfile_abstract.c index ed08b8ca..ef78160f 100644 --- a/tools/quake3/q3map2/bspfile_abstract.c +++ b/tools/quake3/q3map2/bspfile_abstract.c @@ -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++ )