@@ -4079,7 +4079,7 @@ void flecs_register_flag_for_trait(
40794079 flecs_errstr_1(ecs_id_str(world, e)));
40804080 }
40814081
4082- ecs_component_record_t *cr = flecs_components_ensure (world, e);
4082+ ecs_component_record_t *cr = flecs_components_get (world, e);
40834083 if (cr) {
40844084 changed |= flecs_set_id_flag(world, cr, flag, trait);
40854085 }
@@ -37652,7 +37652,7 @@ void flecs_component_record_check_constraints(
3765237652 flecs_errstr(ecs_get_path(world, rel)));
3765337653 } else {
3765437654 ecs_throw(ECS_CONSTRAINT_VIOLATED,
37655- "cannot use '%s' by itself: it has the Relationhip trait "
37655+ "cannot use '%s' by itself: it has the Relationship trait "
3765637656 "and must be used in pair with target",
3765737657 flecs_errstr(ecs_get_path(world, rel)));
3765837658 }
@@ -43389,9 +43389,9 @@ void flecs_add_overrides_for_base(
4338943389 ecs_id_t to_add = 0;
4339043390 if (ECS_HAS_ID_FLAG(id, AUTO_OVERRIDE)) {
4339143391 to_add = id & ~ECS_AUTO_OVERRIDE;
43392- ecs_component_record_t *cr = flecs_components_get(
43393- world, to_add);
43394- if (cr && (cr->flags & EcsIdDontFragment) ) {
43392+
43393+ ecs_flags32_t cr_flags = flecs_component_get_flags( world, to_add);
43394+ if (cr_flags & EcsIdDontFragment) {
4339543395 to_add = 0;
4339643396
4339743397 /* Add flag to base table. Cheaper to do here vs adding an
0 commit comments