]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
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 a575093ca65c287eeafbc963c3db4938c93d3143..f60e6645e4b57844c9ed96b9dc23ff6f8ba67fbe 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++ )
        {