From: Rudolf Polzer Date: Tue, 22 Feb 2011 16:48:30 +0000 (+0100) Subject: forgot to check lightDeluxel for NULL here X-Git-Tag: xonotic-v0.5.0~48 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6b48a837f99ba86e55f811f9c68384660c45da94;p=xonotic%2Fnetradiant.git forgot to check lightDeluxel for NULL here --- diff --git a/tools/quake3/q3map2/light_ydnar.c b/tools/quake3/q3map2/light_ydnar.c index a575093c..f60e6645 100644 --- a/tools/quake3/q3map2/light_ydnar.c +++ b/tools/quake3/q3map2/light_ydnar.c @@ -1861,7 +1861,10 @@ static void SubsampleRawLuxel_r( rawLightmap_t *lm, trace_t *trace, vec3_t sampl //% VectorClear( color ); //% samples = 0; VectorCopy( lightLuxel, color ); - VectorCopy( lightDeluxel, direction ); + if(lightDeluxel) + { + VectorCopy( lightDeluxel, direction ); + } samples = 1; for( b = 0; b < 4; b++ ) {