diff --git a/bt/tasks/bt_task.cpp b/bt/tasks/bt_task.cpp index c170778..c64b552 100644 --- a/bt/tasks/bt_task.cpp +++ b/bt/tasks/bt_task.cpp @@ -172,9 +172,8 @@ void BTTask::initialize(Node *p_agent, const Ref &p_blackboard, Node get_child(i)->initialize(p_agent, p_blackboard, p_scene_root); } - if (!GDVIRTUAL_CALL(_setup)) { - _setup(); - } + _setup(); + GDVIRTUAL_CALL(_setup); } Ref BTTask::clone() const {