Explorar o código

snapshot: suppress shadow warnings

Michele Caini %!s(int64=5) %!d(string=hai) anos
pai
achega
85b0bbfd55
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/entt/entity/snapshot.hpp

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

@@ -234,13 +234,13 @@ public:
         typename traits_type::entity_type length{};
 
         archive(length);
-        std::vector<entity_type> entities(length);
+        std::vector<entity_type> all(length);
 
         for(decltype(length) pos{}; pos < length; ++pos) {
-            archive(entities[pos]);
+            archive(all[pos]);
         }
 
-        reg->assign(entities.cbegin(), entities.cend());
+        reg->assign(all.cbegin(), all.cend());
 
         return *this;
     }