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