storage: make try_emplace forward user data to base classes

This commit is contained in:
Michele Caini
2021-11-06 23:35:25 +01:00
parent 0fa586a3d8
commit a40a3b594d

View File

@@ -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 {