summaryrefslogtreecommitdiffhomepage
path: root/editor/scenery-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/scenery-editor.cpp
parentb25edf465d08750fb5f93068cd8b8d5cd9d0dcec (diff)
wip
Diffstat (limited to 'editor/scenery-editor.cpp')
-rw-r--r--editor/scenery-editor.cpp3
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;
}