From 653bf13a7db18ab3bff6e54cec8acaf1ddcfb3b2 Mon Sep 17 00:00:00 2001 From: Dave Palais Date: Thu, 7 Mar 2024 14:00:27 -0500 Subject: [PATCH] Set parent scope in state initialization --- hsm/limbo_hsm.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hsm/limbo_hsm.cpp b/hsm/limbo_hsm.cpp index 6390fdd..a33c2c6 100644 --- a/hsm/limbo_hsm.cpp +++ b/hsm/limbo_hsm.cpp @@ -197,11 +197,7 @@ void LimboHSM::initialize(Node *p_agent, const Ref &p_parent_scope) ERR_FAIL_COND(p_agent == nullptr); ERR_FAIL_COND_MSG(!is_root(), "LimboHSM: initialize() must be called on the root HSM."); - if (!p_parent_scope.is_null()) { - blackboard->set_parent(p_parent_scope); - } - - _initialize(p_agent, nullptr); + _initialize(p_agent, p_parent_scope); if (initial_state == nullptr) { initial_state = Object::cast_to(get_child(0));