Browse Source

Merge pull request #362 from FungusGames/null-variable-check

Added null variable check
master
Chris Gregan 9 years ago
parent
commit
c23113ba1c
  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