From 4eaf6415b7fa762e443dfc9a30269a4e6943d37f Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 12 Mar 2019 15:08:53 +0100 Subject: [PATCH] cleanup --- src/entt/entity/registry.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index c5ddd26b0..7c2117de6 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -652,7 +652,7 @@ public: auto &pdata = pools[pos-1]; if(pdata.pool) { - std::for_each(first, last, [&pdata, this](const auto entity) { + std::for_each(first, last, [&pdata](const auto entity) { if(pdata.pool->has(entity)) { pdata.pool->destroy(entity); }