fix(CountersSelectors): fix dropN function

This commit is contained in:
Guillaume ARM 2024-05-25 12:52:14 +02:00
parent 626a195bb4
commit cd2e624182

View File

@ -54,9 +54,11 @@ end
local function dropN(t, n)
local result = {}
for k,v in pairs(t) do
local i = 1
for _, v in pairs(t) do
if n == 0 then
result[k] = v
result[i] = v
i = i + 1
else
n = n - 1
end