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

Skip to content

Commit e426dcd

Browse files
committed
fix potential issue
1 parent 877c942 commit e426dcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bt_factory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ std::unique_ptr<TreeNode> BehaviorTreeFactory::instantiateTreeNode(
140140
if (it == builders_.end())
141141
{
142142
std::cerr << ID << " not included in this list:" << std::endl;
143-
for (const auto& it: builders_)
143+
for (const auto& builder_it: builders_)
144144
{
145-
std::cerr << it.first << std::endl;
145+
std::cerr << builder_it.first << std::endl;
146146
}
147147
throw RuntimeError("BehaviorTreeFactory: ID [", ID, "] not registered");
148148
}

0 commit comments

Comments
 (0)