From 7f9b59a68b499f62075e1ecff73c4e8c40a7ddd9 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Thu, 19 Nov 2026 03:05: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 0763c89a..8dbe9246 100644 --- a/exp_scenario/module/gui/vlayer.lua +++ b/exp_scenario/module/gui/vlayer.lua @@ -288,7 +288,7 @@ function Elements.stats_table.refresh(stats_table, display_data) end -- destroy - for i=r_len, s_len + i_len + 1, -1 do + for i=r_len, s_len + i_len do local r = rows[i] Gui.destroy_if_valid(r[1]) Gui.destroy_if_valid(r[2]) @@ -296,9 +296,9 @@ function Elements.stats_table.refresh(stats_table, display_data) end -- build - for i=r_len + 1, s_len + i_len do + for i=max(s_len + i_len, r_len) + 1, s_len + i_len do local disp = display_data.item[i - s_len] - ---@diagnostic disable-next-line: missing-fields + ---@diagnostic disable-next-line: need-check-nil rows[i] = { [1] = Elements.stat_label( stats_table,