Skip to content

Commit

Permalink
Merge pull request #144 from justinzhuguangwen/master
Browse files Browse the repository at this point in the history
Update agent.cpp
  • Loading branch information
wbn1984 authored Jun 2, 2022
2 parents a280fe2 + f1395bc commit aa1f53d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/agent/agent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,14 @@ namespace behaviac {
}
}
}


for (behaviac::map<uint32_t, IValue*>::iterator it = _members.begin(); it != _members.end(); ++it)
{
if (it->second)
{
BEHAVIAC_DELETE(it->second);
}
}
#endif

for (BehaviorTreeTasks_t::iterator it = this->m_behaviorTreeTasks.begin(); it != m_behaviorTreeTasks.end(); ++it) {
Expand All @@ -176,6 +183,7 @@ namespace behaviac {

if (this->m_variables != NULL) {
this->m_variables->Clear(true);
BEHAVIAC_DELETE(this->m_variables);
}
}

Expand Down

0 comments on commit aa1f53d

Please sign in to comment.