From 3ed1589e7eb602373c7509a12d3118c017d27bfc Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Mon, 10 Feb 2025 15:07:18 +0900 Subject: [PATCH] . --- exp_legacy/module/modules/gui/research.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/exp_legacy/module/modules/gui/research.lua b/exp_legacy/module/modules/gui/research.lua index 9c2f8d45..138824fa 100644 --- a/exp_legacy/module/modules/gui/research.lua +++ b/exp_legacy/module/modules/gui/research.lua @@ -80,9 +80,7 @@ local function research_res_n() end end - local max_start = math.max(1, #res.disp - 7) - local start = math.clamp(current - 3, 1, max_start) - return math.min(start, max_start) + return math.clamp(current - 3, 1, math.max(1, #res.disp - 7)) end local function research_notification(event)