From fef1e3f8bde2e751d3e0c684c286d7c372bddd1c Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 18 Mar 2026 15:06:58 +0100 Subject: [PATCH] fix: RepeatUntilFail checks child status after init --- control_nodes.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } }