Skip to content

Commit

Permalink
Fix string comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
azeey committed Mar 31, 2020
1 parent e09d5cf commit cedcaa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subt_ign/src/CommsBrokerPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ void CommsBrokerPlugin::UpdateIfNewBreadcrumbs()
for (const auto& [name, pose] : this->poses)
{
// New breadcrumb found.
if (name.find("__breadcrumb__") &&
if (name.find("__breadcrumb__") != std::string::npos &&
this->breadcrumbs.find(name) == this->breadcrumbs.end())
{
this->breadcrumbs[name] = pose;
Expand Down

0 comments on commit cedcaa8

Please sign in to comment.