소스 검색

bug fixing

Michele Caini 7 년 전
부모
커밋
2a8202caa7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/entt/entity/registry.hpp

+ 1 - 1
src/entt/entity/registry.hpp

@@ -710,7 +710,7 @@ public:
     template<typename Component>
     Component & get(const entity_type entity, Component &&component) ENTT_NOEXCEPT {
         assert(valid(entity));
-        auto [pdata, cpool] = assure<Component>();
+        auto [pdata, cpool] = assure<std::remove_reference_t<Component>>();
         auto *comp = cpool->try_get(entity);
 
         if(!comp) {