fix(utils): fix some glitch in utils.table.sum
This commit is contained in:
parent
49558ac6e4
commit
57446b89a3
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue