Behavior tree: fix on_event node event handling

This commit is contained in:
Nikita Lisitsa 2021-10-23 11:12:56 +03:00
parent 9641703375
commit 32a402573d

View file

@ -316,7 +316,9 @@ namespace psemek::util
bool event(Event const & e, Args ... args)
{
cached_status = eventFn(e, args...);
return static_cast<bool>(cached_status);
if (!cached_status)
return child.event(e, args...);
return true;
}
};