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)