bugfix: make LimboState dispatch be recursive

This commit is contained in:
hsolerkalinovski 2024-02-21 01:02:18 -03:00
parent 9fbbea49a9
commit 2b10d88a9f
1 changed files with 3 additions and 0 deletions

View File

@ -117,6 +117,9 @@ bool LimboState::dispatch(const String &p_event, const Variant &p_cargo) {
return ret; return ret;
} }
} }
else if (this->get_parent()->is_class("LimboState")) {
return static_cast<LimboState*>(this->get_parent())->dispatch(p_event, p_cargo);
}
return false; return false;
} }