From d21c16feaeb89481d6b6bcb32e4fc293aafb3b29 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Sat, 14 Nov 2026 13:49:04 +0900 Subject: [PATCH] . --- exp_scenario/module/gui/vlayer.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exp_scenario/module/gui/vlayer.lua b/exp_scenario/module/gui/vlayer.lua index 3aa13b79..eeaff88e 100644 --- a/exp_scenario/module/gui/vlayer.lua +++ b/exp_scenario/module/gui/vlayer.lua @@ -268,7 +268,7 @@ end --- Refresh the tables of every online player function Elements.stats_table.refresh_online() for _, controls in Elements.controls:online_elements() do - local surface = surface_index_from_element() + local surface = surface_index_from_element(controls) if surface == 0 then return end local display_data = Elements.stats_table.calculate_display_data(surface) for _, stats_table in Elements.stats_table:online_elements() do @@ -481,7 +481,7 @@ end function Elements.controls.get_selected_interface(controls) local elements = Elements.controls.data[controls] local interface_type = Elements.type_dropdown.get_selected(elements.type_dropdown) - local surface = surface_index_from_element() + local surface = surface_index_from_element(controls) if surface == 0 then return end local interfaces = Vlayer.get_interfaces(surface)[interface_type] return interface_type, Elements.interface_dropdown.get_selected(elements.interface_dropdown, interfaces) @@ -493,7 +493,7 @@ function Elements.controls.refresh_interfaces(controls) local elements = Elements.controls.data[controls] local interface_type = Elements.type_dropdown.get_selected(elements.type_dropdown) local element = elements.surface_dropdown - local surface = surface_index_from_element() + local surface = surface_index_from_element(controls) if surface == 0 then return end Elements.interface_dropdown.refresh(elements.interface_dropdown, Vlayer.get_interfaces(surface)[interface_type]) end