summaryrefslogtreecommitdiffhomepage
path: root/editor/imgui.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-08-09 09:48:11 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-08-11 11:07:54 +0200
commitbd6400ca442b1ee2d4deb6fede68c00e70999d9e (patch)
tree1e55165b343596fd10c758c92f9c050398223a41 /editor/imgui.cpp
parent601915244264ed265c1ca1808a6bb2842cab2286 (diff)
editor: now use bptr<object>::destroy()
Diffstat (limited to 'editor/imgui.cpp')
-rw-r--r--editor/imgui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/imgui.cpp b/editor/imgui.cpp
index 2923c3ea..4fadfe44 100644
--- a/editor/imgui.cpp
+++ b/editor/imgui.cpp
@@ -338,7 +338,7 @@ void app::do_popup_menu()
{
const auto [id, target] = _popup_target;
auto& w = M->world();
- const auto eʹ = w.find_object(id);
+ auto eʹ = w.find_object(id);
if (target == popup_target_type::none || !eʹ)
{
@@ -394,6 +394,7 @@ void app::do_popup_menu()
e.chunk().remove_object(e.index());
e.destroy_script_post();
e.gone = true;
+ eʹ.destroy();
}
}
else