From 0d9d8cbb455f8176d9e64916febcb1cd67dea188 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Thu, 12 Nov 2026 00:26:57 +0900 Subject: [PATCH] . --- exp_scenario/module/gui/vlayer.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exp_scenario/module/gui/vlayer.lua b/exp_scenario/module/gui/vlayer.lua index 5ecc4957..a44b35c7 100644 --- a/exp_scenario/module/gui/vlayer.lua +++ b/exp_scenario/module/gui/vlayer.lua @@ -445,7 +445,9 @@ end function Elements.controls.refresh_interfaces(controls) local elements = Elements.controls.data[controls] local interface_type = Elements.type_dropdown.get_selected(elements.type_dropdown) - local surface = game.surfaces[elements.surface_dropdown.items[elements.surface_dropdown.selected_index]] + local element = elements.surface_dropdown + if not element then return end + local surface = game.surfaces[element.items[element.selected_index]] Elements.interface_dropdown.refresh(elements.interface_dropdown, Vlayer.get_interfaces(surface.index)[interface_type]) end