From 024dd39b0bfbdf5b39bc972ea7ad2f6546a4d460 Mon Sep 17 00:00:00 2001 From: tpart Date: Sun, 11 Aug 2024 00:58:11 +0200 Subject: Delete old map items when updating data --- client/menu/lobby.gd | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client/menu') diff --git a/client/menu/lobby.gd b/client/menu/lobby.gd index f2c5e1d7..f86be916 100644 --- a/client/menu/lobby.gd +++ b/client/menu/lobby.gd @@ -48,6 +48,8 @@ func _ready(): func initialize(): map_count = game.maps.size() + for c in map_list.get_children(): + c.queue_free() var i := 0 for m in game.maps.keys(): var b = Button.new() -- cgit v1.2.3-70-g09d2