fix(CountersSelectors): fix dropN function
This commit is contained in:
parent
626a195bb4
commit
cd2e624182
@ -54,9 +54,11 @@ end
|
|||||||
local function dropN(t, n)
|
local function dropN(t, n)
|
||||||
local result = {}
|
local result = {}
|
||||||
|
|
||||||
for k,v in pairs(t) do
|
local i = 1
|
||||||
|
for _, v in pairs(t) do
|
||||||
if n == 0 then
|
if n == 0 then
|
||||||
result[k] = v
|
result[i] = v
|
||||||
|
i = i + 1
|
||||||
else
|
else
|
||||||
n = n - 1
|
n = n - 1
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user