forgot to check lightDeluxel for NULL here
authorRudolf Polzer <divVerent@xonotic.org>
Tue, 22 Feb 2011 16:48:30 +0000 (17:48 +0100)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 22 Feb 2011 16:48:30 +0000 (17:48 +0100)
tools/quake3/q3map2/light_ydnar.c

index a575093..f60e664 100644 (file)
@@ -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++ )
        {