aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Conor Allison <conoboy137@hotmail.co.uk>2024-03-01 22:15:15 +0100
committer Conor Allison <conoboy137@hotmail.co.uk>2024-03-01 22:15:15 +0100
commit92a43a51c898e42e7290c1e2421f57d9b9500a16 (patch)
tree01f60248473e90e0110c0a803b8d6ff29dc25108
parentafac144b0065c3687759731b9da6eef1ca4905ad (diff)
better resource management
-rw-r--r--game/src/Game/GameSession/NationManagementScreen/TechnologyMenu.gd6
1 files changed, 3 insertions, 3 deletions
diff --git a/game/src/Game/GameSession/NationManagementScreen/TechnologyMenu.gd b/game/src/Game/GameSession/NationManagementScreen/TechnologyMenu.gd
index d3241e1..41dc2c8 100644
--- a/game/src/Game/GameSession/NationManagementScreen/TechnologyMenu.gd
+++ b/game/src/Game/GameSession/NationManagementScreen/TechnologyMenu.gd
@@ -24,14 +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
+ folder_windows.clear()
for tech_group_item in tech_groups:
country_technology.add_child(tech_group_item)
- tech_groups = null
+ tech_groups.clear()
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
+ tech_windows.clear()
var close_button : Button = get_button_from_nodepath(^"./country_technology/close_button")