diff --git a/include/behaviortree_cpp/controls/fallback_node.h b/include/behaviortree_cpp/controls/fallback_node.h index a16bf5bf6..7e88bc04a 100644 --- a/include/behaviortree_cpp/controls/fallback_node.h +++ b/include/behaviortree_cpp/controls/fallback_node.h @@ -32,7 +32,7 @@ namespace BT class FallbackNode : public ControlNode { public: - FallbackNode(const std::string& name, bool make_aynch = false); + FallbackNode(const std::string& name, bool make_asynch = false); virtual ~FallbackNode() override = default; diff --git a/src/controls/fallback_node.cpp b/src/controls/fallback_node.cpp index 42c05d76d..334330630 100644 --- a/src/controls/fallback_node.cpp +++ b/src/controls/fallback_node.cpp @@ -15,11 +15,11 @@ namespace BT { -FallbackNode::FallbackNode(const std::string& name, bool make_aynch) +FallbackNode::FallbackNode(const std::string& name, bool make_asynch) : ControlNode::ControlNode(name, {}) , current_child_idx_(0) , all_skipped_(true) - , asynch_(make_aynch) + , asynch_(make_asynch) { if(asynch_) setRegistrationID("AsyncFallback");