From a26fea28029d2cbb5e3d4e7db4f9ea70696cf843 Mon Sep 17 00:00:00 2001 From: Sara Date: Thu, 12 Mar 2026 22:28:51 +0100 Subject: [PATCH] fix: debug log shows actual new behaviour --- modules/behaviour_nodes/behaviour_tree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();