helper: make to_entity also work for stable types (close #768)
This commit is contained in:
@@ -9,7 +9,7 @@ CR_EXPORT int cr_main(cr_plugin *ctx, cr_op operation) {
|
||||
auto ®istry = *static_cast<entt::registry *>(ctx->userdata);
|
||||
|
||||
// forces the creation of the pool for the velocity component
|
||||
registry.storage<velocity>();
|
||||
static_cast<void>(registry.storage<velocity>());
|
||||
|
||||
const auto view = registry.view<position>();
|
||||
registry.insert(view.begin(), view.end(), velocity{1., 1.});
|
||||
|
||||
Reference in New Issue
Block a user