diff --git a/engine.lua b/engine.lua index 696d153..5bb642e 100644 --- a/engine.lua +++ b/engine.lua @@ -36,8 +36,9 @@ local function fair_split(length, shares) local sum_adj local remaining = #shares local spare = nil - local need_recompute = false + local need_recompute repeat + need_recompute = false sum_weight = 0 sum_adj = 0 for i = 1, #shares do