Просмотр исходного кода

storage: make try_emplace forward user data to base classes

Michele Caini 4 лет назад
Родитель
Сommit
a40a3b594d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/entt/entity/storage.hpp

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

@@ -356,7 +356,7 @@ protected:
             construct(assure_at_least(pos));
 
             ENTT_TRY {
-                base_type::try_emplace(entt, nullptr);
+                base_type::try_emplace(entt, ud);
                 ENTT_ASSERT(pos == base_type::index(entt), "Misplaced component");
             }
             ENTT_CATCH {