diff --git a/src/entt/entity/mixin.hpp b/src/entt/entity/mixin.hpp index 6cc3c7e79..aa8887d93 100644 --- a/src/entt/entity/mixin.hpp +++ b/src/entt/entity/mixin.hpp @@ -455,7 +455,7 @@ public: */ template void on_construct(const id_type id = type_hash::value()) { - owner_or_assert().storage(id).on_construct(*this); + owner_or_assert().storage(id).on_construct().connect(*this); } /** @@ -466,7 +466,7 @@ public: */ template void on_update(const id_type id = type_hash::value()) { - owner_or_assert().storage(id).on_update(*this); + owner_or_assert().storage(id).on_update().connect(*this); } /** @@ -477,7 +477,7 @@ public: */ template void on_destroy(const id_type id = type_hash::value()) { - owner_or_assert().storage(id).on_destroy(*this); + owner_or_assert().storage(id).on_destroy().connect(*this); } /**