diff --git a/modules/behaviour_nodes/behaviour_tree.cpp b/modules/behaviour_nodes/behaviour_tree.cpp index 5b944830c7f..78bd209fcae 100644 --- a/modules/behaviour_nodes/behaviour_tree.cpp +++ b/modules/behaviour_nodes/behaviour_tree.cpp @@ -46,8 +46,9 @@ bool BehaviourTree::execute_next() { } if (this->current->get_parent() != next) { next->enter(); + next->execute(); } this->current = next; - return cast_to(this->current); + return cast_to(this->current) || this->current->get_status() == BehaviourNode::Fail; } }