Skip to content

Commit 31ac5d5

Browse files
authored
Update flecs.h
1 parent f38ca4b commit 31ac5d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

distr/flecs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)