Skip to content

Commit 82dc8e9

Browse files
authored
Update entity_view.hpp
1 parent 6a61148 commit 82dc8e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/flecs/addons/cpp/entity_view.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ struct entity_view : public id {
712712
* @param value The enum constant.
713713
* @return True if the entity has the provided component, false otherwise.
714714
*/
715-
template<typename First, typename E, if_t< is_enum<E>::value > = 0>
715+
template<typename First, typename E, if_t< is_enum<E>::value && !std::is_same<First, E>::value > = 0>
716716
bool has(E value) const {
717717
const auto& et = enum_type<E>(this->world_);
718718
flecs::entity_t second = et.entity(value);

0 commit comments

Comments
 (0)