From 1ffb1aef2e8b83bb60bc3aeb289473a6da99f39e Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 23 May 2009 18:30:13 +0000 Subject: [PATCH] same bug, different place :P git-svn-id: svn://svn.icculus.org/netradiant/trunk@375 61c419a2-8eb2-4b30-bcec-8cead039b335 --- tools/quake3/q3map2/light_trace.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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]); */ -- 2.39.2