diff --git a/src/goap/state.cpp b/src/goap/state.cpp index cd17eda..9a9a9ec 100644 --- a/src/goap/state.cpp +++ b/src/goap/state.cpp @@ -22,13 +22,13 @@ void State::_process(double) { } void State::interrupt_state() { - gd::UtilityFunctions::print("!!! ", this->get_path(), " interrupt_state"); + gd::UtilityFunctions::print("!!! ", this->get_path(), " interrupt_state"); this->_end_state(); this->queue_free(); } void State::end_state() { - gd::UtilityFunctions::print("!!! ", this->get_path(), " end_state"); + gd::UtilityFunctions::print("!!! ", this->get_path(), " end_state"); this->interrupt_state(); this->emit_signal(this->is_action_done() ? "state_finished" : "state_failed"); this->emit_signal("end_state"); @@ -47,4 +47,4 @@ bool State::is_action_done() const { bool State::is_action_done_interrupt() const { return this->is_action_done() && !this->action->get_require_state_complete(); } -} +} //namespace goap