Browse Source

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

Michele Caini 5 năm trước cách đây
mục cha
commit
2396c9b6da
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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()) {
         if(const auto it = remloc.find(entt); it == remloc.cend()) {
             const auto local = reg->create();
             const auto local = reg->create();
             remloc.emplace(entt, std::make_pair(local, true));
             remloc.emplace(entt, std::make_pair(local, true));
-            reg->destroy(local, 0u);
+            reg->destroy(local);
         }
         }
     }
     }