Bugfix in table.removeValue
This commit is contained in:
parent
c829e856f7
commit
77a4f3d401
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ end
|
|||
table.removeValue = function(target, value)
|
||||
for i, v in ipairs(target) do
|
||||
if v == value then
|
||||
target.remove(target, i)
|
||||
table.remove(target, i)
|
||||
return target
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue