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