From afac144b0065c3687759731b9da6eef1ca4905ad Mon Sep 17 00:00:00 2001 From: Conor Allison Date: Fri, 1 Mar 2024 17:44:27 +0000 Subject: Slight tweak tweaked the ready to free the arrays used in the initial gui generation, means they arent hanging around in memory --- game/src/Game/GameSession/NationManagementScreen/TechnologyMenu.gd | 3 +++ 1 file changed, 3 insertions(+) (limited to 'game/src') diff --git a/game/src/Game/GameSession/NationManagementScreen/TechnologyMenu.gd b/game/src/Game/GameSession/NationManagementScreen/TechnologyMenu.gd index b024ca4..d3241e1 100644 --- a/game/src/Game/GameSession/NationManagementScreen/TechnologyMenu.gd +++ b/game/src/Game/GameSession/NationManagementScreen/TechnologyMenu.gd @@ -24,11 +24,14 @@ func _ready() -> void: #setup the window since the gui file doesnt store positions, can probably be optimised for folder_item in folder_windows: country_technology.add_child(folder_item) + folder_windows = null for tech_group_item in tech_groups: country_technology.add_child(tech_group_item) + tech_groups = null for research_item_column in tech_windows: for research_item_row in research_item_column: country_technology.add_child(research_item_row) + tech_windows = null var close_button : Button = get_button_from_nodepath(^"./country_technology/close_button") -- cgit v1.2.3-56-ga3b1