forgot to check lightDeluxel for NULL here

This commit is contained in:
Rudolf Polzer 2011-02-22 17:48:30 +01:00
parent ab06d9eea3
commit 6b48a837f9

View 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++ )
{