Fix warning variable add is used uninitialized

This commit is contained in:
Pan7 2017-07-10 15:30:04 +02:00
parent 52da823a3c
commit 714cc90ce7

View file

@ -975,6 +975,11 @@ int LightContributionToSample( trace_t *trace ){
return 1;
}
/* unknown light type */
else {
return -1;
}
/* ydnar: changed to a variable number */
if ( add <= 0.0f || ( add <= light->falloffTolerance && ( light->flags & LIGHT_FAST_ACTUAL ) ) ) {
return 0;