@ -58,6 +58,10 @@ namespace Fungus
// Make sure each command has a reference to its parent sequence
foreach (Command command in sequence.commandList)
{
if (command == null) // Will be deleted from the list later on
continue;
}
command.parentSequence = sequence;
@ -61,6 +61,11 @@ namespace Fungus
int index = 0;
foreach (Command command in commandList)
if (command == null) // Null entry will be deleted automatically later
command.commandIndex = index++;