diff options
Diffstat (limited to 'editor/scenery-editor.cpp')
-rw-r--r-- | editor/scenery-editor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/scenery-editor.cpp b/editor/scenery-editor.cpp index 07cdbd7c..7a99bbb0 100644 --- a/editor/scenery-editor.cpp +++ b/editor/scenery-editor.cpp @@ -92,8 +92,9 @@ start: while (auto id = a.get_object_colliding_with_cursor()) { for (auto i = 0uz; i < sz; i++) - if (es[i]->id == id) + if (const auto eʹ = es[i]; eʹ->id == id) { + //eʹ->on_destroy(eʹ, false); c.remove_object(i); goto start; } |