From ef5c1a1099c09af85e4e67cd9dd118ed828d9fea Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 19 Jul 2021 15:24:12 +0200 Subject: [PATCH] snapshot: minor changes --- src/entt/entity/snapshot.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entt/entity/snapshot.hpp b/src/entt/entity/snapshot.hpp index 0ee0871ec..4292d553e 100644 --- a/src/entt/entity/snapshot.hpp +++ b/src/entt/entity/snapshot.hpp @@ -173,7 +173,7 @@ class basic_snapshot_loader { entity_type entt{}; - if constexpr(std::tuple_size_vtemplate view().get({}))> == 0) { + if constexpr(ignore_as_empty_v>) { while(length--) { archive(entt); const auto entity = reg->valid(entt) ? entt : reg->create(entt); @@ -392,7 +392,7 @@ class basic_continuous_loader { entity_type entt{}; - if constexpr(std::tuple_size_vtemplate view().get({}))> == 0) { + if constexpr(ignore_as_empty_v>) { while(length--) { archive(entt); restore(entt);