From 7f5b0b17a5e56ec3ad58d5b7ba33bda0ee38ddc1 Mon Sep 17 00:00:00 2001 From: Xinhao Yuan Date: Sun, 27 Jun 2021 13:15:44 -0400 Subject: [PATCH] Variable scope fix: need_recompute. --- engine.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engine.lua b/engine.lua index 7d2aa31..a357e76 100644 --- a/engine.lua +++ b/engine.lua @@ -36,9 +36,8 @@ local function fair_split(length, shares) local sum_adj local remaining = #shares local spare = nil + local need_recompute = false repeat - local need_recompute = false - sum_weight = 0 sum_adj = 0 for i = 1, #shares do