summaryrefslogtreecommitdiffhomepage
path: root/editor/vobj-editor.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-04-08 11:16:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-04-08 19:40:24 +0200
commit457cdf24489c20f0f9b9b9877bf9e875aa643f91 (patch)
tree5c01a4cbe3935784e30b3a2a2912e62aa00ef29a /editor/vobj-editor.cpp
parentb25edf465d08750fb5f93068cd8b8d5cd9d0dcec (diff)
wip
Diffstat (limited to 'editor/vobj-editor.cpp')
-rw-r--r--editor/vobj-editor.cpp3
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;
}