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

Skip to content

Commit e196159

Browse files
Merge pull request BehaviorTree#156 from HansRobo/patch-1
Fix error message
2 parents 3bb38d8 + d830d2a commit e196159

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/behavior_tree.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void applyRecursiveVisitor(const TreeNode* node,
2020
{
2121
if (!node)
2222
{
23-
throw LogicError("One of the children of a DecoratorNode or ControlNode is nulltr");
23+
throw LogicError("One of the children of a DecoratorNode or ControlNode is nullptr");
2424
}
2525

2626
visitor(node);
@@ -42,7 +42,7 @@ void applyRecursiveVisitor(TreeNode* node, const std::function<void(TreeNode*)>&
4242
{
4343
if (!node)
4444
{
45-
throw LogicError("One of the children of a DecoratorNode or ControlNode is nulltr");
45+
throw LogicError("One of the children of a DecoratorNode or ControlNode is nullptr");
4646
}
4747

4848
visitor(node);

0 commit comments

Comments
 (0)