Fixed a random behavior in god rays tests

Due to an uninitialized value
This commit is contained in:
Michaël Lemaire 2015-10-08 00:47:14 +02:00
parent 8d9e3fbc94
commit 652c66a2fa

View file

@ -65,6 +65,7 @@ class GodRayLightSource: public LightSource
virtual bool getLightsAt(std::vector<LightComponent> &result, const Vector3 &location) const override
{
LightComponent light;
light.altered = true;
light.color = Color(fabs(location.x), fabs(location.y), fabs(location.z));
result.push_back(light);
return true;