Skip to content

Commit

Permalink
Fix NRE in NHSupernovaPlanetEffectController
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaPiggy committed Jun 7, 2024
1 parent 8b1db8d commit 746c842
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,11 @@ public void Update()
{
for (int i = 0; i < _ambientLight.Length; i++)
{
_ambientLight[i].intensity = _ambientLightOrigIntensity[i] * (1f - collapseProgress);
var ambientLight = _ambientLight[i];
if (ambientLight != null)
{
ambientLight.intensity = _ambientLightOrigIntensity[i] * (1f - collapseProgress);
}
}
}

Expand Down

0 comments on commit 746c842

Please sign in to comment.