1
0
Эх сурвалжийг харах

snapshot: suppress a warning by clang

Michele Caini 1 жил өмнө
parent
commit
27efd6fdf4

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

@@ -87,9 +87,9 @@ public:
                     archive(*first);
                 }
             } else if constexpr(component_traits<Type>::in_place_delete) {
-                using common_type = typename registry_type::common_type;
+                const typename registry_type::common_type &base = *storage;
 
-                for(auto it = storage->common_type::rbegin(), last = storage->common_type::rend(); it != last; ++it) {
+                for(auto it = base.rbegin(), last = base.rend(); it != last; ++it) {
                     if(const auto entt = *it; entt == tombstone) {
                         archive(static_cast<entity_type>(null));
                     } else {