Browse Source

Null pointer check when iterating on Sequence commands

master
chrisgregan 10 years ago
parent
commit
fa2e37e90e
  1. 3
      Assets/Fungus/FungusScript/Scripts/Sequence.cs

3
Assets/Fungus/FungusScript/Scripts/Sequence.cs

@ -214,9 +214,12 @@ namespace Fungus
{
List<Sequence> connectedSequences = new List<Sequence>();
foreach (Command command in commandList)
{
if (command != null)
{
command.GetConnectedSequences(ref connectedSequences);
}
}
return connectedSequences;
}

Loading…
Cancel
Save