From d26f7684ce13925d685e4d6fc2e16f86f4fbf37d Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 24 Mar 2023 16:42:24 +0100 Subject: [PATCH] snapshot: minor changes --- src/entt/entity/snapshot.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/entt/entity/snapshot.hpp b/src/entt/entity/snapshot.hpp index 46be98f1c..70b412def 100644 --- a/src/entt/entity/snapshot.hpp +++ b/src/entt/entity/snapshot.hpp @@ -266,11 +266,11 @@ public: * @return A valid loader to continue restoring data. */ const basic_snapshot_loader &orphans() const { - auto &entities = reg->template storage(); + auto &storage = reg->template storage(); - for(auto entt: entities) { + for(auto entt: storage) { if(reg->orphan(entt)) { - entities.erase(entt); + storage.erase(entt); } } @@ -526,11 +526,11 @@ public: * @return A non-const reference to this loader. */ basic_continuous_loader &orphans() { - auto &entities = reg->template storage(); + auto &storage = reg->template storage(); - for(auto entt: entities) { + for(auto entt: storage) { if(reg->orphan(entt)) { - entities.erase(entt); + storage.erase(entt); } }