Browse Source

snapshot: avoid setting the wrong version for entities during a restore (close #588)

Michele Caini 5 years ago
parent
commit
2396c9b6da
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/entity/snapshot.hpp

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

@@ -302,7 +302,7 @@ class basic_continuous_loader {
         if(const auto it = remloc.find(entt); it == remloc.cend()) {
             const auto local = reg->create();
             remloc.emplace(entt, std::make_pair(local, true));
-            reg->destroy(local, 0u);
+            reg->destroy(local);
         }
     }