diff options
author | Conor Allison <conoboy137@hotmail.co.uk> | 2024-03-01 18:44:27 +0100 |
---|---|---|
committer | Conor Allison <conoboy137@hotmail.co.uk> | 2024-03-01 18:44:27 +0100 |
commit | afac144b0065c3687759731b9da6eef1ca4905ad (patch) | |
tree | ab5bf8e36501071a231784ac58e0bf7aa543bd54 /game/src | |
parent | bd4d78904ffebaaf9f6eb152de4fe605dbc3c0b6 (diff) |
Slight tweak
tweaked the ready to free the arrays used in the initial gui generation, means they arent hanging around in memory
Diffstat (limited to 'game/src')
-rw-r--r-- | game/src/Game/GameSession/NationManagementScreen/TechnologyMenu.gd | 3 |
1 files changed, 3 insertions, 0 deletions
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") |