From 08a12454107c6be38fcc476e820f18ad71cef68e Mon Sep 17 00:00:00 2001 From: tpart Date: Thu, 15 Aug 2024 22:06:56 +0200 Subject: Clear bot settings list when menu initializes --- client/menu/lobby.gd | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/menu') diff --git a/client/menu/lobby.gd b/client/menu/lobby.gd index d3172e70..f1cf7fb6 100644 --- a/client/menu/lobby.gd +++ b/client/menu/lobby.gd @@ -62,8 +62,12 @@ func _ready(): func initialize(): map_count = game.maps.size() + for c in map_list.get_children(): c.queue_free() + for c in bot_settings.get_children(): + c.queue_free() + var i := 0 for m in game.maps: var b := Button.new() -- cgit v1.2.3-70-g09d2