From 2b10d88a9fff2e26b16f09b1a20c6067ab992547 Mon Sep 17 00:00:00 2001 From: hsolerkalinovski Date: Wed, 21 Feb 2024 01:02:18 -0300 Subject: [PATCH] bugfix: make LimboState dispatch be recursive --- hsm/limbo_state.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hsm/limbo_state.cpp b/hsm/limbo_state.cpp index bf75f49..0f6cba7 100644 --- a/hsm/limbo_state.cpp +++ b/hsm/limbo_state.cpp @@ -117,6 +117,9 @@ bool LimboState::dispatch(const String &p_event, const Variant &p_cargo) { return ret; } } + else if (this->get_parent()->is_class("LimboState")) { + return static_cast(this->get_parent())->dispatch(p_event, p_cargo); + } return false; }