diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index 511ce4fc0..99a4458f8 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -796,7 +796,7 @@ public: template Component & get_or_assign(const entity_type entity, Args &&... args) ENTT_NOEXCEPT { assert(valid(entity)); - auto *cpool = assure>(); + auto *cpool = assure(); auto *comp = cpool->try_get(entity); return comp ? *comp : cpool->construct(entity, std::forward(args)...); }