From 32e5545c8c50f0d16adde2aef9d7b50de01c90b2 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 11 Aug 2024 12:12:34 +0200 Subject: remove object::gone With `bptr::destroy()` there's no need to be extra careful anymore. --- editor/imgui.cpp | 1 - editor/scenery-editor.cpp | 1 - editor/vobj-editor.cpp | 1 - 3 files changed, 3 deletions(-) (limited to 'editor') diff --git a/editor/imgui.cpp b/editor/imgui.cpp index c1523522..0e5b56cc 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -393,7 +393,6 @@ void app::do_popup_menu() e.destroy_script_pre(eʹ, script_destroy_reason::kill); e.chunk().remove_object(e.index()); e.destroy_script_post(); - e.gone = true; eʹ.destroy(); } } diff --git a/editor/scenery-editor.cpp b/editor/scenery-editor.cpp index 4de14207..7b95df9e 100644 --- a/editor/scenery-editor.cpp +++ b/editor/scenery-editor.cpp @@ -99,7 +99,6 @@ start: e.destroy_script_pre(eʹ, script_destroy_reason::kill); c.remove_object(i); e.destroy_script_post(); - e.gone = true; eʹ.destroy(); goto start; } diff --git a/editor/vobj-editor.cpp b/editor/vobj-editor.cpp index 4c2828e1..7e7dde15 100644 --- a/editor/vobj-editor.cpp +++ b/editor/vobj-editor.cpp @@ -61,7 +61,6 @@ start: e.destroy_script_pre(eʹ, script_destroy_reason::kill); c.remove_object((unsigned)i); e.destroy_script_post(); - e.gone = true; eʹ.destroy(); goto start; } -- cgit v1.2.3