File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24272,7 +24272,7 @@ struct entity_view : public id {
2427224272 * @param value The enum constant to check.
2427324273 * @return True if the entity has the provided constant, false otherwise.
2427424274 */
24275- template<typename First, typename E, if_t< is_enum<E>::value && !std::is_same<First, E>::value > = 0>
24275+ template <typename E, if_t< is_enum<E>::value > = 0>
2427624276 bool has(E value) const {
2427724277 auto r = _::type<E>::id(world_);
2427824278 auto o = enum_type<E>(world_).entity(value);
@@ -24322,7 +24322,7 @@ struct entity_view : public id {
2432224322 * @param value The enum constant.
2432324323 * @return True if the entity has the provided component, false otherwise.
2432424324 */
24325- template<typename First, typename E, if_t< is_enum<E>::value > = 0 >
24325+ template<typename First, typename E, if_t< is_enum<E>::value && !std::is_same<First, E>::value > >
2432624326 bool has(E value) const {
2432724327 const auto& et = enum_type<E>(this->world_);
2432824328 flecs::entity_t second = et.entity(value);
You can’t perform that action at this time.
0 commit comments