Bugfix in table.removeValue

This commit is contained in:
Simon Brodtmann 2025-02-15 23:12:56 +01:00
parent c829e856f7
commit 77a4f3d401

View file

@ -46,7 +46,7 @@ end
table.removeValue = function(target, value) table.removeValue = function(target, value)
for i, v in ipairs(target) do for i, v in ipairs(target) do
if v == value then if v == value then
target.remove(target, i) table.remove(target, i)
return target return target
end end
end end