diff --git a/src/entt/entity/snapshot.hpp b/src/entt/entity/snapshot.hpp index e39d983c9..ef208198b 100644 --- a/src/entt/entity/snapshot.hpp +++ b/src/entt/entity/snapshot.hpp @@ -37,7 +37,7 @@ class basic_snapshot { archive(static_cast(sz)); for(auto it = first; it != last; ++it) { - if(reg->template all_of(*it)) { + if(view.contains(*it)) { std::apply(archive, std::tuple_cat(std::make_tuple(*it), view.get(*it))); } }