fix: debug log shows actual new behaviour
This commit is contained in:
parent
1e7f1cb3f6
commit
a26fea2802
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue