mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-14 16:41:13 +00:00
- fixed: sector lights could access the sector before it was set.
This commit is contained in:
parent
c8c8fecad3
commit
b709a0b6b2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue