diff options
Diffstat (limited to 'editor/vobj-editor.cpp')
-rw-r--r-- | editor/vobj-editor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/vobj-editor.cpp b/editor/vobj-editor.cpp index f644ca1c..52365fd5 100644 --- a/editor/vobj-editor.cpp +++ b/editor/vobj-editor.cpp @@ -53,8 +53,9 @@ start: while (auto id = a.get_object_colliding_with_cursor()) { for (auto i = (int)(es.size()-1); i >= 0; i--) { - if (es[i]->id == id) + if (const auto eʹ = es[i]; eʹ->id == id) { + //eʹ->on_destroy(eʹ); c.remove_object((unsigned)i); goto start; } |