Michele Caini 7 years ago
parent
commit
4eaf6415b7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/entity/registry.hpp

+ 1 - 1
src/entt/entity/registry.hpp

@@ -652,7 +652,7 @@ public:
             auto &pdata = pools[pos-1];
             auto &pdata = pools[pos-1];
 
 
             if(pdata.pool) {
             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)) {
                     if(pdata.pool->has(entity)) {
                         pdata.pool->destroy(entity);
                         pdata.pool->destroy(entity);
                     }
                     }