diff --git a/bt/bt_state.cpp b/bt/bt_state.cpp index 1a29f03..dd1c659 100644 --- a/bt/bt_state.cpp +++ b/bt/bt_state.cpp @@ -32,10 +32,10 @@ void BTState::set_behavior_tree(const Ref &p_tree) { p_tree->connect(LW_NAME(plan_changed), callable_mp(this, &BTState::_update_blackboard_plan)); } behavior_tree = p_tree; - _update_blackboard_plan(); } else { behavior_tree = p_tree; } + _update_blackboard_plan(); } void BTState::_update_blackboard_plan() {