Skip to content

Commit 374dd39

Browse files
committed
Fix issue #517
1 parent 109eccd commit 374dd39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/behaviortree_cpp/bt_factory.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ class Tree
144144
//but, just in case.... this should be no-op
145145
auto visitor = [](BT::TreeNode* node) { node->haltNode(); };
146146
BT::applyRecursiveVisitor(rootNode(), visitor);
147+
148+
rootNode()->resetStatus();
147149
}
148150

149151
TreeNode* rootNode() const;

0 commit comments

Comments
 (0)