Behavior tree: fix on_event node event handling
This commit is contained in:
parent
9641703375
commit
32a402573d
1 changed files with 3 additions and 1 deletions
|
|
@ -316,7 +316,9 @@ namespace psemek::util
|
||||||
bool event(Event const & e, Args ... args)
|
bool event(Event const & e, Args ... args)
|
||||||
{
|
{
|
||||||
cached_status = eventFn(e, args...);
|
cached_status = eventFn(e, args...);
|
||||||
return static_cast<bool>(cached_status);
|
if (!cached_status)
|
||||||
|
return child.event(e, args...);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue