From fd7c4de0c74de77f9127d84c6d0699fde35ba0c0 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Fri, 22 Jan 2016 12:21:58 +0000 Subject: [PATCH] Added null variable check --- Assets/Fungus/Flowchart/Scripts/Flowchart.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Fungus/Flowchart/Scripts/Flowchart.cs b/Assets/Fungus/Flowchart/Scripts/Flowchart.cs index c223a8f4..d154fc8f 100644 --- a/Assets/Fungus/Flowchart/Scripts/Flowchart.cs +++ b/Assets/Fungus/Flowchart/Scripts/Flowchart.cs @@ -623,7 +623,7 @@ namespace Fungus { foreach (Variable v in variables) { - if (v.key == key) + if (v != null && v.key == key) { BooleanVariable variable = v as BooleanVariable; if (variable != null)