From 6b48a837f99ba86e55f811f9c68384660c45da94 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 22 Feb 2011 17:48:30 +0100 Subject: [PATCH] forgot to check lightDeluxel for NULL here --- tools/quake3/q3map2/light_ydnar.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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++ ) { -- 2.39.2