浏览代码

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

Michele Caini 5 年之前
父节点
当前提交
2396c9b6da
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
         }
     }