mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 22:51:39 +00:00
- fixed: sector lights could access the sector before it was set.
This commit is contained in:
parent
ca35bdc33c
commit
f25dadbaf2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue