Browse Source

Added null sequence check

master
chrisgregan 11 years ago
parent
commit
9dec388164
  1. 3
      Assets/Fungus/VisualScripting/AddOption.cs

3
Assets/Fungus/VisualScripting/AddOption.cs

@ -31,7 +31,8 @@ namespace Fungus.Script
}
else if (showCondition == ShowCondition.NotVisited)
{
if (targetSequence.GetExecutionCount () > 0)
if (targetSequence == null ||
targetSequence.GetExecutionCount () > 0)
{
showOption = false;
}

Loading…
Cancel
Save