Fix BTParallel getting stuck when repeat=false and criterea are not met
This commit is contained in:
parent
08bb63ad26
commit
f9f2a67bbf
|
@ -33,6 +33,9 @@ int BTParallel::_tick(float p_delta) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!repeat && (num_failed + num_succeeded) == get_child_count() && return_status == RUNNING) {
|
||||||
|
return_status = FAILURE;
|
||||||
|
}
|
||||||
return return_status;
|
return return_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue