From 9e2bc6c8566d55afa4f6b78909fcb082f57fd3a9 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 18 Jun 2024 15:39:51 +0200 Subject: [PATCH] mixin: avoid using component_traits --- src/entt/entity/mixin.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/entt/entity/mixin.hpp b/src/entt/entity/mixin.hpp index f59988568..c8ebd5798 100644 --- a/src/entt/entity/mixin.hpp +++ b/src/entt/entity/mixin.hpp @@ -6,7 +6,6 @@ #include "../config/config.h" #include "../core/any.hpp" #include "../signal/sigh.hpp" -#include "component.hpp" #include "entity.hpp" #include "fwd.hpp" @@ -64,7 +63,7 @@ private: } } else { for(auto entt: static_cast(*this)) { - if constexpr(component_traits::in_place_delete) { + if constexpr(underlying_type::storage_policy == deletion_policy::in_place) { if(entt != tombstone) { destruction.publish(reg, entt); }