summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-05-03 22:17:31 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-05-05 03:16:23 +0200
commit90e14ba9636f4f5a44f06efac5a50e373d8daeaa (patch)
tree44d6d857ef3e4af41694a60c0c83d1788b74f71a
parentbacf3d17645e4f79496d42069d9e96bb7ac76497 (diff)
b
-rw-r--r--editor/vobj-editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/vobj-editor.cpp b/editor/vobj-editor.cpp
index 916f303b..d3eb7bc5 100644
--- a/editor/vobj-editor.cpp
+++ b/editor/vobj-editor.cpp
@@ -57,8 +57,8 @@ start: while (auto id = a.get_object_colliding_with_cursor())
if (eʹ->id == id && eʹ->is_virtual())
{
eʹ->destroy_script_pre(eʹ, script_destroy_reason::kill);
- eʹ->destroy_script_post();
c.remove_object((unsigned)i);
+ eʹ->destroy_script_post();
goto start;
}
}