summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-05-02 18:56:39 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-05-02 22:54:16 +0200
commit518efccab147cae5b670c14ea1fc7b477f696a09 (patch)
tree5b468654399e3ba449b29ade9f2f5622ef902653 /src
parent0af58edf619ca071210d2bab399ca780390c7100 (diff)
actually, don't delete objects during update
Diffstat (limited to 'src')
-rw-r--r--src/critter.cpp3
1 files changed, 3 insertions, 0 deletions
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<object>& ptrʹ, size_t& i, const Ns&
check_script_update_1(script.state());
script->on_update(std::static_pointer_cast<critter>(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]]
{