From 8b776ee2a51849c4facd541ed5831942e0c92d5e Mon Sep 17 00:00:00 2001 From: Lucien Date: Wed, 19 Aug 2026 17:10:41 +0200 Subject: [PATCH] Fix a null ref when opening a scene with enviro disabled --- Imports/Enviro - Sky and Weather/Core/Scripts/EnviroZone.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Imports/Enviro - Sky and Weather/Core/Scripts/EnviroZone.cs b/Imports/Enviro - Sky and Weather/Core/Scripts/EnviroZone.cs index d0ace259..28b48b0c 100644 --- a/Imports/Enviro - Sky and Weather/Core/Scripts/EnviroZone.cs +++ b/Imports/Enviro - Sky and Weather/Core/Scripts/EnviroZone.cs @@ -55,6 +55,9 @@ public class EnviroZone : MonoBehaviour { void Start () { + if (!EnviroSkyMgr.instance) + return; + if (zoneWeatherPresets.Count > 0) {