fix(utils): fix some glitch in utils.table.sum

This commit is contained in:
Kazhnuz 2019-06-29 14:02:03 +02:00
parent 49558ac6e4
commit 57446b89a3

View file

@ -38,11 +38,11 @@ end
function Table.sum(table)
local sum = 0
for _, v in kpairs(table) do
for _, v in pairs(table) do
sum = sum + v
end
return v
return sum
end
function Table.average(table)