Răsfoiți Sursa

snapshot: minor changes

Michele Caini 3 ani în urmă
părinte
comite
d26f7684ce
1 a modificat fișierele cu 6 adăugiri și 6 ștergeri
  1. 6 6
      src/entt/entity/snapshot.hpp

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

@@ -266,11 +266,11 @@ public:
      * @return A valid loader to continue restoring data.
      * @return A valid loader to continue restoring data.
      */
      */
     const basic_snapshot_loader &orphans() const {
     const basic_snapshot_loader &orphans() const {
-        auto &entities = reg->template storage<entity_type>();
+        auto &storage = reg->template storage<entity_type>();
 
 
-        for(auto entt: entities) {
+        for(auto entt: storage) {
             if(reg->orphan(entt)) {
             if(reg->orphan(entt)) {
-                entities.erase(entt);
+                storage.erase(entt);
             }
             }
         }
         }
 
 
@@ -526,11 +526,11 @@ public:
      * @return A non-const reference to this loader.
      * @return A non-const reference to this loader.
      */
      */
     basic_continuous_loader &orphans() {
     basic_continuous_loader &orphans() {
-        auto &entities = reg->template storage<entity_type>();
+        auto &storage = reg->template storage<entity_type>();
 
 
-        for(auto entt: entities) {
+        for(auto entt: storage) {
             if(reg->orphan(entt)) {
             if(reg->orphan(entt)) {
-                entities.erase(entt);
+                storage.erase(entt);
             }
             }
         }
         }