From daad2633fc002f3dc238e74eadad2b794670aab2 Mon Sep 17 00:00:00 2001 From: Christopher Date: Thu, 13 Oct 2016 14:11:46 +0100 Subject: [PATCH] Added null safety check --- Assets/Fungus/Scripts/Commands/SetSliderValue.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/Fungus/Scripts/Commands/SetSliderValue.cs b/Assets/Fungus/Scripts/Commands/SetSliderValue.cs index f014a747..cfde6251 100644 --- a/Assets/Fungus/Scripts/Commands/SetSliderValue.cs +++ b/Assets/Fungus/Scripts/Commands/SetSliderValue.cs @@ -24,7 +24,10 @@ namespace Fungus public override void OnEnter() { - slider.value = value; + if (slider != null) + { + slider.value = value; + } Continue(); }