Skip to content

Commit fe7b381

Browse files
authored
Update untyped_component.inl
1 parent aeb1dd9 commit fe7b381

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/flecs/addons/cpp/mixins/meta/untyped_component.inl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ untyped_component& constant(
202202
ecs_assert(eid != 0, ECS_INTERNAL_ERROR, NULL);
203203

204204
ecs_set_id(world_, eid,
205-
ecs_pair(flecs::Constant, flecs::_::type<T>::id(world)), sizeof(T),
205+
ecs_pair(flecs::Constant, _::type<T>::id(world_)), sizeof(T),
206206
&value);
207207

208208
return *this;
@@ -212,7 +212,7 @@ untyped_component& constant(
212212
template <typename T = uint32_t>
213213
untyped_component& bit(
214214
const char *name,
215-
uint32_t value)
215+
T value)
216216
{
217217
ecs_add_id(world_, id_, _::type<flecs::Bitmask>::id(world_));
218218

@@ -223,7 +223,7 @@ untyped_component& bit(
223223
ecs_assert(eid != 0, ECS_INTERNAL_ERROR, NULL);
224224

225225
ecs_set_id(world_, eid,
226-
ecs_pair(flecs::Constant, flecs::_::type<T>::id(world)), sizeof(T),
226+
ecs_pair(flecs::Constant, _::type<T>::id(world_)), sizeof(T),
227227
&value);
228228

229229
return *this;

0 commit comments

Comments
 (0)