Browse Source

snapshot: decouple from component_traits

Michele Caini 1 year ago
parent
commit
97ed546e7b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/entity/snapshot.hpp

+ 1 - 1
src/entt/entity/snapshot.hpp

@@ -101,7 +101,7 @@ public:
                 for(auto first = storage->data(), last = first + storage->size(); first != last; ++first) {
                 for(auto first = storage->data(), last = first + storage->size(); first != last; ++first) {
                     archive(*first);
                     archive(*first);
                 }
                 }
-            } else if constexpr(component_traits<Type>::in_place_delete) {
+            } else if constexpr(registry_type::storage_for_type<Type>::storage_policy == deletion_policy::in_place) {
                 const typename registry_type::common_type &base = *storage;
                 const typename registry_type::common_type &base = *storage;
 
 
                 for(auto it = base.rbegin(), last = base.rend(); it != last; ++it) {
                 for(auto it = base.rbegin(), last = base.rend(); it != last; ++it) {