Skip to content

Commit

Permalink
snapshot: suppress a warning by clang
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Apr 10, 2024
1 parent 4dc3f65 commit 27efd6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entt/entity/snapshot.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ class basic_snapshot {
archive(*first);
}
} else if constexpr(component_traits<Type>::in_place_delete) {
using common_type = typename registry_type::common_type;
const typename registry_type::common_type &base = *storage;

for(auto it = storage->common_type::rbegin(), last = storage->common_type::rend(); it != last; ++it) {
for(auto it = base.rbegin(), last = base.rend(); it != last; ++it) {
if(const auto entt = *it; entt == tombstone) {
archive(static_cast<entity_type>(null));
} else {
Expand Down

0 comments on commit 27efd6f

Please sign in to comment.