Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fcfa920

Browse files
committed
bug fix
1 parent 70c7715 commit fcfa920

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/behaviortree_cpp_v3/behavior_tree.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,15 @@ void buildSerializedStatusSnapshot(const TreeNode* root_node,
7272
SerializedTreeStatus& serialized_buffer);
7373

7474
/// 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().
7676
template <typename T>
7777
inline NodeType getType()
7878
{
7979
// clang-format off
8080
if( std::is_base_of<ActionNodeBase, T>::value ) return NodeType::ACTION;
8181
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;
8384
if( std::is_base_of<DecoratorNode, T>::value ) return NodeType::DECORATOR;
8485
if( std::is_base_of<ControlNode, T>::value ) return NodeType::CONTROL;
8586
return NodeType::UNDEFINED;

0 commit comments

Comments
 (0)