Skip to content

Commit aeb1dd9

Browse files
authored
Update flecs.h
1 parent 82718a1 commit aeb1dd9

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
@@ -27883,7 +27883,7 @@ untyped_component& constant(
2788327883
template <typename T = uint32_t>
2788427884
untyped_component& bit(
2788527885
const char *name,
27886-
uint32_t value)
27886+
T value)
2788727887
{
2788827888
ecs_add_id(world_, id_, _::type<flecs::Bitmask>::id(world_));
2788927889

@@ -27894,7 +27894,7 @@ untyped_component& bit(
2789427894
ecs_assert(eid != 0, ECS_INTERNAL_ERROR, NULL);
2789527895

2789627896
ecs_set_id(world_, eid,
27897-
ecs_pair(flecs::Constant, flecs::_::type<T>::id(world)), sizeof(T),
27897+
ecs_pair(flecs::Constant, _::type<T>::id(world_)), sizeof(T),
2789827898
&value);
2789927899

2790027900
return *this;

0 commit comments

Comments
 (0)