From e32ff63a224d4004ff15bb85db9e625dcfc2084a Mon Sep 17 00:00:00 2001 From: Stephen Date: Sat, 24 Nov 2018 14:25:56 -0500 Subject: [PATCH] Shuffle fix --- src/ReplicatedStorage/Aero/Shared/TableUtil.modulescript.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReplicatedStorage/Aero/Shared/TableUtil.modulescript.lua b/src/ReplicatedStorage/Aero/Shared/TableUtil.modulescript.lua index e8b102d..79e4ad6 100644 --- a/src/ReplicatedStorage/Aero/Shared/TableUtil.modulescript.lua +++ b/src/ReplicatedStorage/Aero/Shared/TableUtil.modulescript.lua @@ -332,7 +332,7 @@ end local function Shuffle(tbl) assert(type(tbl) == "table", "First argument must be a table") - for i = #tbl, 1, -1 do + for i = #tbl, 2, -1 do local j = math.random(i) tbl[i], tbl[j] = tbl[j], tbl[i] end