Skip to content

Commit

Permalink
Fix nullref #21
Browse files Browse the repository at this point in the history
  • Loading branch information
LGhassen committed Sep 9, 2022
1 parent 085f49c commit c38d4c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Atmosphere/CloudsPQS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ IEnumerator DelayedCheckForSphereInactive()
{
yield return new WaitForFixedUpdate();

if (!sphere.isActive && !layer2D.Scaled)
if (!sphere.isActive && layer2D != null && !layer2D.Scaled)
{
OnSphereInactive();
}
Expand Down

0 comments on commit c38d4c5

Please sign in to comment.