diff options
| author | Xiaohong Bao <bao@lindenlab.com> | 2010-08-23 17:32:26 -0600 | 
|---|---|---|
| committer | Xiaohong Bao <bao@lindenlab.com> | 2010-08-23 17:32:26 -0600 | 
| commit | 6091c3a758b400039bb98d720256260b8e37ff88 (patch) | |
| tree | 04fb886b52e9064ce191109aba2f43f8d6dea10e | |
| parent | 94a454e3251dac9fb83d4418fffa75b5d563076d (diff) | |
fix for EXT-8101: [crashhunters] crash in LLVOSky::calcAtmospherics()
| -rw-r--r-- | indra/newview/llvosky.cpp | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/indra/newview/llvosky.cpp b/indra/newview/llvosky.cpp index d73850cb49..bb80988854 100644 --- a/indra/newview/llvosky.cpp +++ b/indra/newview/llvosky.cpp @@ -975,7 +975,10 @@ void LLVOSky::calcAtmospherics(void)  		}  		temp2.mV[1] = llmax(0.f, lighty); -		temp2.mV[1] = 1.f / temp2.mV[1]; +		if(temp2.mV[1] > 0.f) +		{ +			temp2.mV[1] = 1.f / temp2.mV[1]; +		}  		componentMultBy(sunlight, componentExp((light_atten * -1.f) * temp2.mV[1]));  		// Distance | 
