Explorar el Código

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

Michele Caini hace 6 años
padre
commit
bb050e2660
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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>
     bool has() const {
-        return (reg->template has<Component>(entt) && ...);
+        return reg->template has<Component...>(entt);
     }
 
     /**