Fix BTParallel getting stuck when repeat=false and criterea are not met

This commit is contained in:
Serhii Snitsaruk 2022-11-03 17:01:26 +01:00
parent 08bb63ad26
commit f9f2a67bbf
1 changed files with 3 additions and 0 deletions

View File

@ -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;
} }