From dc6a03e08c6c84cfffc4b493f258c3a633d5a226 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Thu, 19 Sep 2024 10:09:50 +0200 Subject: [PATCH] reactive mixin: first few fixes --- src/entt/entity/mixin.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } /**