Преглед изворни кода

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

Michele Caini пре 6 година
родитељ
комит
bb050e2660
1 измењених фајлова са 1 додато и 1 уклоњено
  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);
     }
 
     /**