diff --git a/Assets/Fungus/FungusScript/Scripts/Sequence.cs b/Assets/Fungus/FungusScript/Scripts/Sequence.cs index ba55648f..f6847523 100644 --- a/Assets/Fungus/FungusScript/Scripts/Sequence.cs +++ b/Assets/Fungus/FungusScript/Scripts/Sequence.cs @@ -215,7 +215,10 @@ namespace Fungus List connectedSequences = new List(); foreach (Command command in commandList) { - command.GetConnectedSequences(ref connectedSequences); + if (command != null) + { + command.GetConnectedSequences(ref connectedSequences); + } } return connectedSequences; }