Skip to content

Commit

Permalink
fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshidan committed Feb 7, 2021
1 parent b400be8 commit ef6836f
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 ef6836f

Please sign in to comment.