mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
behavior tree evaluation fix
This commit is contained in:
@@ -140,7 +140,10 @@ impl<B> BehaviorTree<B> {
|
||||
let mut all_succeeded = true;
|
||||
for child in composite.children.iter() {
|
||||
match self.tick_recursive(*child, context) {
|
||||
Status::Failure => all_succeeded = false,
|
||||
Status::Failure => {
|
||||
all_succeeded = false;
|
||||
break;
|
||||
}
|
||||
Status::Running => {
|
||||
return Status::Running;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user