fix: debug log shows actual new behaviour

This commit is contained in:
Sara Gerretsen 2026-03-12 22:28:51 +01:00
parent 1e7f1cb3f6
commit a26fea2802

View file

@ -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();