Skip to content

Commit

Permalink
Merge pull request #2 from yoshidan/feature/issue1
Browse files Browse the repository at this point in the history
Fix NullReferenceExeption in All
  • Loading branch information
yoshidan authored Feb 7, 2021
2 parents b400be8 + ef6836f commit d504511
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Assets/UniBT/Scripts/Runtime/BuiltIn/Composite/All.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ namespace UniBT
public class All : Composite
{

private readonly List<NodeBehavior> runningNodes = new List<NodeBehavior>();
private List<NodeBehavior> runningNodes;

protected override void OnAwake()
{
runningNodes = new List<NodeBehavior>();
}

/// <summary>
/// Update all nodes.
Expand Down

0 comments on commit d504511

Please sign in to comment.