Fix LimboHSM compile errors with mono glue

This commit is contained in:
Serhii Snitsaruk 2023-07-25 18:39:41 +02:00
parent 1ef92176b2
commit f651c9c228
2 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ LimboState *LimboHSM::get_leaf_state() const {
} }
} }
void LimboHSM::set_initial_state(Node *p_state) { void LimboHSM::set_initial_state(LimboState *p_state) {
ERR_FAIL_COND(p_state == nullptr || !p_state->is_class("LimboState")); ERR_FAIL_COND(p_state == nullptr || !p_state->is_class("LimboState"));
initial_state = Object::cast_to<LimboState>(p_state); initial_state = Object::cast_to<LimboState>(p_state);
} }

View File

@ -60,7 +60,7 @@ public:
LimboState *get_leaf_state() const; LimboState *get_leaf_state() const;
void set_active(bool p_active); void set_active(bool p_active);
void set_initial_state(Node *p_state); void set_initial_state(LimboState *p_state);
LimboState *get_initial_state() const { return initial_state; } LimboState *get_initial_state() const { return initial_state; }
virtual void initialize(Node *p_agent, const Ref<Blackboard> &p_parent_scope = nullptr); virtual void initialize(Node *p_agent, const Ref<Blackboard> &p_parent_scope = nullptr);