diff --git a/Assets/Fungus/Sprite/Scripts/SpriteFader.cs b/Assets/Fungus/Sprite/Scripts/SpriteFader.cs index 416fbdf5..dfcd49b2 100644 --- a/Assets/Fungus/Sprite/Scripts/SpriteFader.cs +++ b/Assets/Fungus/Sprite/Scripts/SpriteFader.cs @@ -47,6 +47,7 @@ namespace Fungus // Destroy any existing fader component SpriteFader oldSpriteFader = spriteRenderer.GetComponent(); + if (oldSpriteFader != null) { Destroy(oldSpriteFader); }