- 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
parent c8c8fecad3
commit b709a0b6b2
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,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;