| 75 | } |
| 76 | |
| 77 | NodeStatus DecoratorNode::executeTick() |
| 78 | { |
| 79 | const NodeStatus status = TreeNode::executeTick(); |
| 80 | const NodeStatus child_status = child()->status(); |
| 81 | if(child_status == NodeStatus::SUCCESS || child_status == NodeStatus::FAILURE) |
| 82 | { |
| 83 | child()->resetStatus(); |
| 84 | } |
| 85 | return status; |
| 86 | } |
| 87 | |
| 88 | } // namespace BT |
no test coverage detected