diff --git a/src/entt/entity/mixin.hpp b/src/entt/entity/mixin.hpp index c151bbff4..d02d65fa2 100644 --- a/src/entt/entity/mixin.hpp +++ b/src/entt/entity/mixin.hpp @@ -37,11 +37,12 @@ class basic_sigh_mixin final: public Type { static_assert(std::is_base_of_v, "Invalid registry type"); - owner_type &owner_or_assert() const noexcept { + auto &owner_or_assert() const noexcept { ENTT_ASSERT(owner != nullptr, "Invalid pointer to registry"); return static_cast(*owner); } +private: void pop(underlying_iterator first, underlying_iterator last) final { if(auto ® = owner_or_assert(); destruction.empty()) { underlying_type::pop(first, last);