Ver Fonte

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

Michele Caini há 6 anos atrás
pai
commit
bb050e2660
1 ficheiros alterados com 1 adições e 1 exclusões
  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);
     }
 
     /**