From bbd16fd27f10d0dc294bea8c255c569a442e07cf Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Thu, 19 Nov 2026 15:12:48 +0900 Subject: [PATCH] . --- exp_scenario/module/gui/vlayer.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exp_scenario/module/gui/vlayer.lua b/exp_scenario/module/gui/vlayer.lua index 1a53c28d..2f342e7e 100644 --- a/exp_scenario/module/gui/vlayer.lua +++ b/exp_scenario/module/gui/vlayer.lua @@ -49,6 +49,8 @@ for _, name in ipairs{ "production", "sustained", "capacity", "surface-area" } d } end +local s_len = #stats + local energy_suffixes = { { 1e15, "P" }, { 1e12, "T" }, @@ -261,7 +263,6 @@ end function Elements.stats_table.refresh(stats_table, display_data) local rows = Elements.stats_table.data[stats_table] local r_len = #rows - local s_len = #display_data.stat local i_len = #display_data.item for i=1, s_len do