Browse Source

actor: (has<T>(e) && ...) -> has<T...>(e)

Michele Caini 6 years ago
parent
commit
bb050e2660
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/entity/actor.hpp

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

@@ -130,7 +130,7 @@ struct basic_actor {
      */
      */
     template<typename... Component>
     template<typename... Component>
     bool has() const {
     bool has() const {
-        return (reg->template has<Component>(entt) && ...);
+        return reg->template has<Component...>(entt);
     }
     }
 
 
     /**
     /**