diff --git a/src/dsl/operation/TypeBind.hpp b/src/dsl/operation/TypeBind.hpp index 3694a82ab..59b557530 100644 --- a/src/dsl/operation/TypeBind.hpp +++ b/src/dsl/operation/TypeBind.hpp @@ -78,13 +78,13 @@ namespace dsl { reaction->unbinders.push_back([](threading::Reaction& r) { auto& vec = store::TypeCallbackStore::get(); - auto item = std::find_if( + auto it = std::find_if( std::begin(vec), std::end(vec), [&r](const std::shared_ptr& item) { return item->id == r.id; }); // If the item is in the list erase the item - if (item != std::end(vec)) { + if (it != std::end(vec)) { vec.erase(item); } });