File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ TODO (high prio):
1313* resource cache: avoid using shared ptr with loader and the others
1414* further optimize exclusion lists in multi type views (no existence check)
1515* doc: bump entities
16- * deprecate/drop snapshot orphans function, make it a general purpose one
1716* view with entity storage: begin/end should return filtered iterators
1817* update view doc: single vs multi type views are no longer a thing actually
1918* meta container: add value type to resize
Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ namespace internal {
2525
2626template <typename Registry>
2727void orphans (Registry ®istry) {
28- auto view = registry.template view <typename Registry::entity_type>();
28+ auto &storage = registry.template storage <typename Registry::entity_type>();
2929
30- for (auto entt: view ) {
30+ for (auto entt: storage ) {
3131 if (registry.orphan (entt)) {
32- view. storage ()-> erase (entt);
32+ storage. erase (entt);
3333 }
3434 }
3535}
You can’t perform that action at this time.
0 commit comments