File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
include/behaviortree_cpp_v3 Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -72,14 +72,15 @@ void buildSerializedStatusSnapshot(const TreeNode* root_node,
72
72
SerializedTreeStatus& serialized_buffer);
73
73
74
74
// / Simple way to extract the type of a TreeNode at COMPILE TIME.
75
- // / Useful to avoid the cost of without dynamic_cast or the virtual method TreeNode::type().
75
+ // / Useful to avoid the cost of dynamic_cast or the virtual method TreeNode::type().
76
76
template <typename T>
77
77
inline NodeType getType ()
78
78
{
79
79
// clang-format off
80
80
if ( std::is_base_of<ActionNodeBase, T>::value ) return NodeType::ACTION;
81
81
if ( std::is_base_of<ConditionNode, T>::value ) return NodeType::CONDITION;
82
- if ( std::is_base_of<DecoratorSubtreeNode, T>::value ) return NodeType::SUBTREE;
82
+ if ( std::is_base_of<SubtreeNode, T>::value ) return NodeType::SUBTREE;
83
+ if ( std::is_base_of<SubtreeWrapperNode, T>::value ) return NodeType::SUBTREE;
83
84
if ( std::is_base_of<DecoratorNode, T>::value ) return NodeType::DECORATOR;
84
85
if ( std::is_base_of<ControlNode, T>::value ) return NodeType::CONTROL;
85
86
return NodeType::UNDEFINED;
You can’t perform that action at this time.
0 commit comments