diff options
-rw-r--r-- | entityx/Entity.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/entityx/Entity.h b/entityx/Entity.h index 28c1b5d..8edd109 100644 --- a/entityx/Entity.h +++ b/entityx/Entity.h @@ -291,8 +291,8 @@ class EntityManager : boost::noncopyable, public enable_shared_from_this<EntityM friend class View; Iterator(ptr<EntityManager> manager, - std::vector<Predicate> predicates, - std::vector<ptr<BaseUnpacker>> unpackers, + const std::vector<Predicate> &predicates, + const std::vector<ptr<BaseUnpacker>> &unpackers, uint32_t index) : manager_(manager), predicates_(predicates), unpackers_(unpackers), i_(index), capacity_(manager_->capacity()) { next(); |