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
1 changed files with 5 additions and 0 deletions

View File

@ -973,6 +973,11 @@ int LightContributionToSample( trace_t *trace ){
/* return to sender */
return 1;
}
/* unknown light type */
else {
return -1;
}
/* ydnar: changed to a variable number */