diff --git a/modules/behaviour_nodes/behaviour_tree.cpp b/modules/behaviour_nodes/behaviour_tree.cpp index 235ede1a..95eade4c 100644 --- a/modules/behaviour_nodes/behaviour_tree.cpp +++ b/modules/behaviour_nodes/behaviour_tree.cpp @@ -40,7 +40,7 @@ bool BehaviourTree::execute_next() { return false; } else { ERR_FAIL_COND_V_EDMSG(next == nullptr, false, vformat("%s::get_next returned a nullptr, repeating last node", this->current->get_class())); - print_line("new behaviour:", this->current->get_path()); + print_line("new behaviour:", next->get_path()); this->current->exit(); this->current = next; this->current->enter();