File tree Expand file tree Collapse file tree 5 files changed +11
-2
lines changed Expand file tree Collapse file tree 5 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,9 @@ class SyncActionNode : public ActionNodeBase
6060
6161 // / You don't need to override this
6262 virtual void halt () override final
63- {}
63+ {
64+ resetStatus ();
65+ }
6466};
6567
6668/* *
Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ class ConditionNode : public LeafNode
2727
2828 // Do nothing
2929 virtual void halt () override final
30- {}
30+ {
31+ resetStatus ();
32+ }
3133
3234 virtual NodeType type () const override final
3335 {
Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ void CoroActionNode::tickImpl()
129129void CoroActionNode::halt ()
130130{
131131 destroyCoroutine ();
132+ resetStatus (); // might be redundant
132133}
133134
134135void CoroActionNode::destroyCoroutine ()
@@ -183,6 +184,7 @@ void StatefulActionNode::halt()
183184 {
184185 onHalted ();
185186 }
187+ resetStatus (); // might be redundant
186188}
187189
188190NodeStatus BT::ThreadedAction::executeTick ()
@@ -238,4 +240,5 @@ void ThreadedAction::halt()
238240 thread_handle_.wait ();
239241 }
240242 thread_handle_ = {};
243+ resetStatus (); // might be redundant
241244}
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ size_t ControlNode::childrenCount() const
3232void ControlNode::halt ()
3333{
3434 resetChildren ();
35+ resetStatus (); // might be redundant
3536}
3637
3738void ControlNode::resetChildren ()
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ void DecoratorNode::setChild(TreeNode* child)
3232void DecoratorNode::halt ()
3333{
3434 resetChild ();
35+ resetStatus (); // might be redundant
3536}
3637
3738const TreeNode* DecoratorNode::child () const
You can’t perform that action at this time.
0 commit comments