We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c10667e commit 1fde21dCopy full SHA for 1fde21d
Assets/com.fluid.behavior-tree/Runtime/BehaviorTree/Builder/BehaviorTreeBuilder.cs
@@ -1,4 +1,4 @@
1
-using System;
+using System;
2
using System.Collections.Generic;
3
using CleverCrow.Fluid.BTs.Decorators;
4
using CleverCrow.Fluid.BTs.TaskParents;
@@ -179,7 +179,9 @@ public BehaviorTreeBuilder AddNode (ITask node) {
179
}
180
181
public BehaviorTreeBuilder Splice (BehaviorTree tree) {
182
- _tree.Splice(PointerCurrent, tree);
+ if (tree != null && tree.Root != null) {
183
+ _tree.Splice(PointerCurrent, tree);
184
+ }
185
186
return this;
187
0 commit comments