Michele Caini 5 роки тому
батько
коміт
85cf32516e
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      src/entt/entity/view.hpp

+ 2 - 2
src/entt/entity/view.hpp

@@ -891,8 +891,8 @@ public:
                     func();
                 }
             } else {
-                for(auto &&component: *this) {
-                    func(component);
+                for(auto entity: *this) {
+                    func(entity);
                 }
             }
         } else {