diff --git a/src/entt/entity/helper.hpp b/src/entt/entity/helper.hpp index 2a4042aee..4ad2e2787 100644 --- a/src/entt/entity/helper.hpp +++ b/src/entt/entity/helper.hpp @@ -6,7 +6,6 @@ #include #include "../core/fwd.hpp" #include "../core/type_traits.hpp" -#include "../signal/delegate.hpp" #include "component.hpp" #include "fwd.hpp" #include "group.hpp" @@ -108,9 +107,7 @@ private: template>> void invoke(Registry ®, const typename Registry::entity_type entt) { static_assert(std::is_member_function_pointer_v, "Invalid pointer to non-static member function"); - delegate func; - func.template connect(reg.template get>(entt)); - func(reg, entt); + (reg.template get>(entt).*Member)(reg, entt); } /**