Browse Source

Added null variable check

master
chrisgregan 9 years ago
parent
commit
fd7c4de0c7
  1. 2
      Assets/Fungus/Flowchart/Scripts/Flowchart.cs

2
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)

Loading…
Cancel
Save