Fix a null ref when opening a scene with enviro disabled
This commit is contained in:
@@ -55,6 +55,9 @@ public class EnviroZone : MonoBehaviour {
|
|||||||
|
|
||||||
void Start ()
|
void Start ()
|
||||||
{
|
{
|
||||||
|
if (!EnviroSkyMgr.instance)
|
||||||
|
return;
|
||||||
|
|
||||||
if (zoneWeatherPresets.Count > 0)
|
if (zoneWeatherPresets.Count > 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user