summaryrefslogtreecommitdiffhomepage
path: root/src/chunk.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-04-08 11:16:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-04-08 19:40:24 +0200
commit457cdf24489c20f0f9b9b9877bf9e875aa643f91 (patch)
tree5c01a4cbe3935784e30b3a2a2912e62aa00ef29a /src/chunk.cpp
parentb25edf465d08750fb5f93068cd8b8d5cd9d0dcec (diff)
wip
Diffstat (limited to 'src/chunk.cpp')
-rw-r--r--src/chunk.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/chunk.cpp b/src/chunk.cpp
index 26b8779f..e2b26e72 100644
--- a/src/chunk.cpp
+++ b/src/chunk.cpp
@@ -170,6 +170,12 @@ void chunk::add_object(const std::shared_ptr<object>& e)
arrayInsert(es, (size_t)std::distance(es.cbegin(), it), e);
}
+void chunk::on_teardown()
+{
+ fm_assert(!_teardown); // too late, some chunks were already erased
+ //for (const auto& eʹ : _objects) eʹ->on_destroy(eʹ, true); // todo!
+}
+
void chunk::remove_object(size_t i)
{
fm_assert(_objects_sorted);