Kaynağa Gözat

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

Michele Caini 6 yıl önce
ebeveyn
işleme
bb050e2660
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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);
     }
 
     /**