Просмотр исходного кода

snapshot: drop redundant check

Michele Caini 2 лет назад
Родитель
Сommit
71d7888e81
1 измененных файлов с 0 добавлено и 1 удалено
  1. 0 1
      src/entt/entity/snapshot.hpp

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

@@ -87,7 +87,6 @@ public:
     template<typename Archive>
     template<typename Archive>
     const basic_snapshot &entities(Archive &archive) const {
     const basic_snapshot &entities(Archive &archive) const {
         const auto *storage = reg->template storage<entity_type>();
         const auto *storage = reg->template storage<entity_type>();
-        ENTT_ASSERT(storage, "No entity storage available");
 
 
         archive(static_cast<typename traits_type::entity_type>(storage->size()));
         archive(static_cast<typename traits_type::entity_type>(storage->size()));
         archive(static_cast<typename traits_type::entity_type>(storage->in_use()));
         archive(static_cast<typename traits_type::entity_type>(storage->in_use()));