- fixed: sector lights could access the sector before it was set.

This commit is contained in:
Christoph Oelckers 2019-09-16 17:34:41 +02:00 committed by drfrag
parent ca35bdc33c
commit f25dadbaf2

View file

@ -372,7 +372,7 @@ void FDynamicLight::Tick()
if (scale == 0.f) scale = 1.f;
intensity = Sector->lightlevel * scale;
intensity = Sector? Sector->lightlevel * scale : 0;
intensity = clamp<float>(intensity, 0.f, 255.f);
m_currentRadius = intensity;