Просмотр исходного кода

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

Michele Caini 6 лет назад
Родитель
Сommit
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);
     }
 
     /**