From 90e14ba9636f4f5a44f06efac5a50e373d8daeaa Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 3 May 2024 22:17:31 +0200 Subject: b --- editor/vobj-editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor') 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; } } -- cgit v1.2.3