From ae86abb2fca685c67a6082db442920fd61888f36 Mon Sep 17 00:00:00 2001 From: AnthraX1 Date: Mon, 26 Feb 2018 04:00:08 +1100 Subject: [PATCH] Fix empty key list bug. When input key list size is greater than 85, table.concat() returns empty because the last parameter is the end offset not the increment value. --- client/scripts/mfkeys.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/scripts/mfkeys.lua b/client/scripts/mfkeys.lua index 33027d31..a4e29417 100644 --- a/client/scripts/mfkeys.lua +++ b/client/scripts/mfkeys.lua @@ -57,7 +57,7 @@ function checkBlock(blockNo, keys, keyType) while remaining > 0 do local n,data = remaining, nil if remaining > 85 then n = 85 end - local data = table.concat(keys,"",start,n) + local data = table.concat(keys,"",start,start + n) --print("data",data) --print("data len", #data) print(("Testing block %d, keytype %d, with %d keys"):format(blockNo, keyType, n))