diff --git a/control_nodes.cpp b/control_nodes.cpp index a8eefbd7..15864a27 100644 --- a/control_nodes.cpp +++ b/control_nodes.cpp @@ -107,10 +107,12 @@ void BehaviourRepeatUntilFail::execute() { if (get_child_behaviours().is_empty()) { set_status(Fail); ERR_FAIL_EDMSG("BehaviourRepeatUntilFail execution with no child"); - } else { + } else if (get_status() == Running) { set_status(get_child_behaviours().get(0)->get_status() == Fail ? Success : Running); + } else { + set_status(Running); } }