1
This commit is contained in:
parent
7f49358f6f
commit
3b89fc8991
@ -32,7 +32,9 @@ HeroAgent::~HeroAgent()
|
||||
void HeroAgent::Exec()
|
||||
{
|
||||
behaviac::EBTStatus status = f8::BtMgr::Instance()->BtExec(this);
|
||||
if (status == behaviac::BT_RUNNING && coroutine_ && coroutine_->GetContext()->HasEvent()) {
|
||||
if (status == behaviac::BT_RUNNING &&
|
||||
coroutine_ &&
|
||||
coroutine_->GetContext()->HasEvent()) {
|
||||
status_= behaviac::BT_INVALID;
|
||||
auto old_coroutine = coroutine_;
|
||||
coroutine_ = nullptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user