Closed skaarj1989 closed 1 month ago
When in_place_delete=true is set for a given component, the snapshot saves "dead" components. This leads to an (indirect) error in the snapshot_loader https://github.com/skypjack/entt/blob/fedcb920ce0068c35ffbc66fd4e84864e6ef71ef/src/entt/entity/snapshot.hpp#L208 entt::null is skipped, but an archive (at least cereal) expects a component.
in_place_delete=true
snapshot
snapshot_loader
entt::null
cereal
Repro code: https://godbolt.org/z/a3cn8j9Ko
When
in_place_delete=true
is set for a given component, thesnapshot
saves "dead" components. This leads to an (indirect) error in thesnapshot_loader
https://github.com/skypjack/entt/blob/fedcb920ce0068c35ffbc66fd4e84864e6ef71ef/src/entt/entity/snapshot.hpp#L208entt::null
is skipped, but an archive (at leastcereal
) expects a component.Repro code: https://godbolt.org/z/a3cn8j9Ko