We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82718a1 commit aeb1dd9Copy full SHA for aeb1dd9
distr/flecs.h
@@ -27883,7 +27883,7 @@ untyped_component& constant(
27883
template <typename T = uint32_t>
27884
untyped_component& bit(
27885
const char *name,
27886
- uint32_t value)
+ T value)
27887
{
27888
ecs_add_id(world_, id_, _::type<flecs::Bitmask>::id(world_));
27889
@@ -27894,7 +27894,7 @@ untyped_component& bit(
27894
ecs_assert(eid != 0, ECS_INTERNAL_ERROR, NULL);
27895
27896
ecs_set_id(world_, eid,
27897
- ecs_pair(flecs::Constant, flecs::_::type<T>::id(world)), sizeof(T),
+ ecs_pair(flecs::Constant, _::type<T>::id(world_)), sizeof(T),
27898
&value);
27899
27900
return *this;
0 commit comments