From 518efccab147cae5b670c14ea1fc7b477f696a09 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 2 May 2024 18:56:39 +0200 Subject: actually, don't delete objects during update --- src/critter.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/critter.cpp b/src/critter.cpp index 18f91797..b08c083c 100644 --- a/src/critter.cpp +++ b/src/critter.cpp @@ -369,8 +369,11 @@ void critter::update(const std::shared_ptr& ptrʹ, size_t& i, const Ns& check_script_update_1(script.state()); script->on_update(std::static_pointer_cast(ptrʹ), i, dt); +#if 0 + // for now, objects can't delete themselves if (check_script_update_2(script.state())) [[unlikely]] return; +#endif if (playable) [[unlikely]] { -- cgit v1.2.3