From 014caf33be4b60515aa67a4b9174d686f18c3a37 Mon Sep 17 00:00:00 2001 From: shkwon98 Date: Thu, 30 May 2024 19:42:20 +0900 Subject: [PATCH] Fix typo in FallbackNode constructor parameter name --- include/behaviortree_cpp/controls/fallback_node.h | 2 +- src/controls/fallback_node.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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");