Merge commit '16ba0418f9' into development
This commit is contained in:
commit
5214b60ff0
1 changed files with 2 additions and 1 deletions
|
|
@ -46,8 +46,9 @@ bool BehaviourTree::execute_next() {
|
|||
}
|
||||
if (this->current->get_parent() != next) {
|
||||
next->enter();
|
||||
next->execute();
|
||||
}
|
||||
this->current = next;
|
||||
return cast_to<BehaviourComposite>(this->current);
|
||||
return cast_to<BehaviourComposite>(this->current) || this->current->get_status() == BehaviourNode::Fail;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue