From: divverent Date: Sat, 23 May 2009 18:30:13 +0000 (+0000) Subject: same bug, different place :P X-Git-Tag: svn-r421~45 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1ffb1aef2e8b83bb60bc3aeb289473a6da99f39e;p=xonotic%2Fnetradiant.git same bug, different place :P git-svn-id: svn://svn.icculus.org/netradiant/trunk@375 61c419a2-8eb2-4b30-bcec-8cead039b335 --- diff --git a/tools/quake3/q3map2/light_trace.c b/tools/quake3/q3map2/light_trace.c index ea3769a1..3bd41b88 100644 --- a/tools/quake3/q3map2/light_trace.c +++ b/tools/quake3/q3map2/light_trace.c @@ -401,7 +401,13 @@ static int SetupTraceNodes_r( int bspNodeNum ) /* normal node */ else - traceNodes[ nodeNum ].children[ i ] = SetupTraceNodes_r( bspNode->children[ i ] ); + { + newNode = SetupTraceNodes_r( bspNode->children[ i ] ); + traceNodes[ nodeNum ].children[ i ] = newNode; + } + + if(traceNodes[ nodeNum ].children[ i ] == 0) + Error( "Invalid tracenode allocated" ); } /* Sys_Printf("node %d children: %d %d\n", nodeNum, traceNodes[ nodeNum ].children[0], traceNodes[ nodeNum ].children[1]); */