aboutsummaryrefslogtreecommitdiff
path: root/scripts/movement.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/movement.gd')
-rw-r--r--scripts/movement.gd3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/movement.gd b/scripts/movement.gd
index fb9e7bd..3247a2f 100644
--- a/scripts/movement.gd
+++ b/scripts/movement.gd
@@ -78,7 +78,8 @@ func selected_event (sel_name, sel_type):
_gui.refresh(in_editor)
if sel_type == "turrets":
- for child in ptr.get_children(): child.queue_free();
+ for child in ptr.get_children():
+ if child.name != "base": child.queue_free();
var info = load_turrets.info[sel.name]
var model = load_turrets.models[info.model_name]
var instance_model = model.instance()