Skip to content

Commit 63ab160

Browse files
authored
Call init_builtin_components() at the end of world reset. (#1)
1 parent a7fba6c commit 63ab160

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

distr/flecs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22776,6 +22776,7 @@ struct world {
2277622776
"reset would invalidate other handles");
2277722777
ecs_fini(world_);
2277822778
world_ = ecs_init();
22779+
init_builtin_components();
2277922780
}
2278022781

2278122782
/** Obtain pointer to C world object.

include/flecs/addons/cpp/world.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ struct world {
267267
"reset would invalidate other handles");
268268
ecs_fini(world_);
269269
world_ = ecs_init();
270+
init_builtin_components();
270271
}
271272

272273
/** Obtain pointer to C world object.

0 commit comments

Comments
 (0)